srsLTE: fix ZMQ RF module gain

master
Xavier Arteaga 5 years ago committed by Andre Puschmann
parent 9f281b621e
commit 097f492430

@ -207,10 +207,10 @@ int rf_zmq_open_multi(char* args, void** h, uint32_t nof_channels)
*h = handler; *h = handler;
handler->base_srate = ZMQ_BASERATE_DEFAULT_HZ; // Sample rate for 100 PRB cell handler->base_srate = ZMQ_BASERATE_DEFAULT_HZ; // Sample rate for 100 PRB cell
handler->rx_gain = 0.0; handler->rx_gain = 0.0;
handler->info.max_rx_gain = +INFINITY; handler->info.max_rx_gain = ZMQ_MAX_GAIN_DB;
handler->info.min_rx_gain = -INFINITY; handler->info.min_rx_gain = ZMQ_MIN_GAIN_DB;
handler->info.max_tx_gain = +INFINITY; handler->info.max_tx_gain = ZMQ_MAX_GAIN_DB;
handler->info.min_tx_gain = -INFINITY; handler->info.min_tx_gain = ZMQ_MIN_GAIN_DB;
handler->nof_channels = nof_channels; handler->nof_channels = nof_channels;
strcpy(handler->id, "zmq\0"); strcpy(handler->id, "zmq\0");

@ -39,6 +39,8 @@
#define ZMQ_TIMEOUT_MS (1000) #define ZMQ_TIMEOUT_MS (1000)
#define ZMQ_BASERATE_DEFAULT_HZ (23040000) #define ZMQ_BASERATE_DEFAULT_HZ (23040000)
#define ZMQ_ID_STRLEN 16 #define ZMQ_ID_STRLEN 16
#define ZMQ_MAX_GAIN_DB (90.0f)
#define ZMQ_MIN_GAIN_DB (-90.0f)
typedef enum { ZMQ_TYPE_FC32 = 0, ZMQ_TYPE_SC16 } rf_zmq_format_t; typedef enum { ZMQ_TYPE_FC32 = 0, ZMQ_TYPE_SC16 } rf_zmq_format_t;

Loading…
Cancel
Save