Harald Welte | b4771a6 | 2012-11-11 10:58:51 +0100 | [diff] [blame] | 1 | #ifndef _OPENBSC_MEAS_FEED_H |
| 2 | #define _OPENBSC_MEAS_FEED_H |
| 3 | |
| 4 | #include <stdint.h> |
| 5 | |
| 6 | #include <openbsc/meas_rep.h> |
| 7 | |
| 8 | struct meas_feed_hdr { |
| 9 | uint8_t msg_type; |
| 10 | uint8_t reserved; |
| 11 | uint16_t version; |
| 12 | }; |
| 13 | |
| 14 | struct meas_feed_meas { |
| 15 | struct meas_feed_hdr hdr; |
| 16 | char imsi[15+1]; |
| 17 | char name[31+1]; |
| 18 | char scenario[31+1]; |
| 19 | struct gsm_meas_rep mr; |
Alexander Chemeris | 08c508f | 2015-08-20 20:48:39 -0400 | [diff] [blame] | 20 | /* The logical channel type, enum gsm_chan_t */ |
| 21 | uint8_t lchan_type; |
| 22 | /* The physical channel type, enum gsm_phys_chan_config */ |
| 23 | uint8_t pchan_type; |
| 24 | /* number of ths BTS in network */ |
| 25 | uint8_t bts_nr; |
| 26 | /* number of this TRX in the BTS */ |
| 27 | uint8_t trx_nr; |
| 28 | /* number of this timeslot at the TRX */ |
| 29 | uint8_t ts_nr; |
| 30 | /* The logical subslot number in the TS */ |
| 31 | uint8_t ss_nr; |
Harald Welte | b4771a6 | 2012-11-11 10:58:51 +0100 | [diff] [blame] | 32 | }; |
| 33 | |
| 34 | enum meas_feed_msgtype { |
| 35 | MEAS_FEED_MEAS = 0, |
| 36 | }; |
| 37 | |
Alexander Chemeris | 08c508f | 2015-08-20 20:48:39 -0400 | [diff] [blame] | 38 | #define MEAS_FEED_VERSION 1 |
Harald Welte | b4771a6 | 2012-11-11 10:58:51 +0100 | [diff] [blame] | 39 | |
| 40 | |
| 41 | #endif |