added functionality to map UEs and eNBs to different cards and RF chains

moved some functionality from device_init to dump_config in openair0 library


git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5744 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
Florian Kaltenberger
2014-08-21 15:43:39 +00:00
parent 111c43ac4c
commit 2d73a4a3fa
7 changed files with 332 additions and 242 deletions
+13
View File
@@ -40,6 +40,10 @@ typedef struct openair0_device_t openair0_device;
/* structrue holds the parameters to configure USRP devices
*/
#ifdef USRP
#define MAX_CARDS 1
#endif
typedef enum {
max_gain=0,med_gain,byp_gain
} rx_gain_t;
@@ -68,6 +72,15 @@ typedef struct {
double tx_bw;
} openair0_config_t;
typedef struct {
/* card id */
int card;
/* rf chain id */
int chain;
} openair0_rf_map;
struct openair0_device_t {
/* USRP RF frontend parameters set by application */
openair0_config_t openair0_cfg;