Pau Espin Pedrol | 786a6bc | 2020-03-30 13:51:21 +0200 | [diff] [blame] | 1 | rf_driver: { |
Pau Espin Pedrol | 65beb8f | 2020-03-31 12:03:19 +0200 | [diff] [blame] | 2 | name: "${trx.rf_dev_type}", |
Pau Espin Pedrol | 65beb8f | 2020-03-31 12:03:19 +0200 | [diff] [blame] | 3 | args: "${trx.rf_dev_args}", |
Andre Puschmann | c489f19 | 2020-10-09 14:46:38 +0200 | [diff] [blame] | 4 | sync: "${trx.rf_dev_sync}", |
Andre Puschmann | 5e08075 | 2021-04-14 21:30:08 +0200 | [diff] [blame] | 5 | % if trx.get('rx_ant', None) != None: |
| 6 | rx_antenna: "${trx.rx_ant}", |
| 7 | % endif |
Andre Puschmann | 9a5be2c | 2020-04-06 22:08:24 +0200 | [diff] [blame] | 8 | |
Pau Espin Pedrol | 65beb8f | 2020-03-31 12:03:19 +0200 | [diff] [blame] | 9 | % if trx.rf_dev_type == 'zmq': |
Andre Puschmann | 9a5be2c | 2020-04-06 22:08:24 +0200 | [diff] [blame] | 10 | dl_sample_bits: 16, |
| 11 | ul_sample_bits: 16, |
Pau Espin Pedrol | d45a29e | 2020-04-02 17:21:47 +0200 | [diff] [blame] | 12 | % endif |
Pau Espin Pedrol | 786a6bc | 2020-03-30 13:51:21 +0200 | [diff] [blame] | 13 | }, |
| 14 | |
Pau Espin Pedrol | a6d6304 | 2020-04-20 15:14:51 +0200 | [diff] [blame] | 15 | tx_gain: ${trx.tx_gain}, /* TX gain (in dB) B2x0: 0 to 89.8 dB */ |
| 16 | rx_gain: ${trx.rx_gain}, /* RX gain (in dB) B2x0: 0 to 73 dB */ |
Andre Puschmann | 374a175 | 2021-04-23 16:35:48 +0200 | [diff] [blame] | 17 | |
Andre Puschmann | 6e081aa | 2021-05-04 16:56:25 +0200 | [diff] [blame^] | 18 | rf_ports: [ |
| 19 | % if trx.rf_dev_type == 'sdr': |
| 20 | { |
| 21 | sample_rate: 23.04, |
| 22 | }, |
| 23 | { |
| 24 | sample_rate: 61.44, |
| 25 | dl_freq: 3502.8, // Moves NR DL LO frequency -5.76 MHz |
| 26 | ul_freq: 3502.8, // Moves NR UL LO frequency -5.76 MHz |
| 27 | } |
| 28 | % else: |
| 29 | { |
| 30 | sample_rate: ${enb.sample_rate}, |
| 31 | }, |
| 32 | { |
| 33 | sample_rate: ${enb.sample_rate}, |
| 34 | } |
| 35 | % endif |
| 36 | ], |
| 37 | |
Andre Puschmann | 374a175 | 2021-04-23 16:35:48 +0200 | [diff] [blame] | 38 | // only the B210 requires a sample offset |
| 39 | % if "b200" in trx.rf_dev_args: |
Andre Puschmann | a70f05c | 2020-04-06 12:13:15 +0200 | [diff] [blame] | 40 | tx_time_offset: -150, |
Andre Puschmann | 374a175 | 2021-04-23 16:35:48 +0200 | [diff] [blame] | 41 | % else: |
| 42 | tx_time_offset: 0, |
| 43 | % endif |