diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2021-04-17 06:48:13 +0200 |
---|---|---|
committer | fixeria <vyanitskiy@sysmocom.de> | 2021-05-11 10:55:55 +0000 |
commit | 4733b099f55285f4c6fe11542806e46c67383d20 (patch) | |
tree | 626a8bffc9211dc43adff060cd5ec26e5eeebf2b /include | |
parent | 05493ca8100a90439b235a006233c89491de318b (diff) |
osmo-bts-trx: implement TRXDv2 protocol support
Diffstat (limited to 'include')
-rw-r--r-- | include/osmo-bts/scheduler.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/osmo-bts/scheduler.h b/include/osmo-bts/scheduler.h index 2d613e79..10359f17 100644 --- a/include/osmo-bts/scheduler.h +++ b/include/osmo-bts/scheduler.h @@ -231,6 +231,8 @@ extern const struct trx_sched_multiframe trx_sched_multiframes[]; #define TRX_BI_F_MOD_TYPE (1 << 1) #define TRX_BI_F_TS_INFO (1 << 2) #define TRX_BI_F_CI_CB (1 << 3) +#define TRX_BI_F_TRX_NUM (1 << 4) +#define TRX_BI_F_BATCH_IND (1 << 5) /*! UL burst indication with the corresponding meta info */ struct trx_ul_burst_ind { @@ -248,6 +250,10 @@ struct trx_ul_burst_ind { uint8_t tsc_set; /*!< Training Sequence Set */ uint8_t tsc; /*!< Training Sequence Code */ int16_t ci_cb; /*!< Carrier-to-Interference ratio (in centiBels) */ + uint8_t trx_num; /*!< TRX (RF channel) number */ + + /* Used internally by the PDU parser */ + uint8_t _num_pdus; /*!< Number of processed PDUs */ /* Internally used by the scheduler */ enum trx_chan_type chan; @@ -258,11 +264,19 @@ struct trx_ul_burst_ind { size_t burst_len; }; +#define TRX_BR_F_MORE_PDUS (1 << 0) + /*! DL burst request with the corresponding meta info */ struct trx_dl_burst_req { + uint8_t flags; /*!< see TRX_BR_F_* */ + + /* Mandatory fields */ uint32_t fn; /*!< TDMA frame number */ uint8_t tn; /*!< TDMA timeslot number */ uint8_t att; /*!< Tx power attenuation */ + uint8_t mts; /*!< MTS (Modulation and Training Sequence) */ + int8_t scpir; /*!< SCPIR (for AQPSK only) */ + uint8_t trx_num; /*!< TRX (RF channel) number */ /* Internally used by the scheduler */ enum trx_chan_type chan; |