diff options
Diffstat (limited to 'CommonLibs/config_defs.h')
-rw-r--r-- | CommonLibs/config_defs.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/CommonLibs/config_defs.h b/CommonLibs/config_defs.h index 8626166..7d501cd 100644 --- a/CommonLibs/config_defs.h +++ b/CommonLibs/config_defs.h @@ -5,6 +5,8 @@ * osmo-trx (CXX, dir Transceiver52) */ +#include <stdbool.h> + enum FillerType { FILLER_DUMMY, FILLER_ZERO, @@ -18,3 +20,38 @@ enum ReferenceType { REF_EXTERNAL, REF_GPS, }; + +/* Maximum number of physical RF channels */ +#define TRX_CHAN_MAX 8 + +struct trx_ctx; + +struct trx_chan { + struct trx_ctx *trx; /* backpointer */ + unsigned int idx; /* channel index */ + char *rx_path; + char *tx_path; +}; + +struct trx_cfg { + char *bind_addr; + char *remote_addr; + char *dev_args; + unsigned int base_port; + unsigned int tx_sps; + unsigned int rx_sps; + unsigned int rtsc; + unsigned int rach_delay; + enum ReferenceType clock_ref; + enum FillerType filler; + bool multi_arfcn; + double offset; + double rssi_offset; + bool swap_channels; + bool ext_rach; + bool egprs; + unsigned int sched_rr; + unsigned int stack_size; + unsigned int num_chans; + struct trx_chan chans[TRX_CHAN_MAX]; +}; |