From 931f9813b0bd9ee46065261d2b2544b74959afb0 Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Wed, 16 Jan 2013 23:04:45 +0100 Subject: l1ctl: Add BTS mode message definitions Signed-off-by: Sylvain Munaut --- include/l1ctl_proto.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/include/l1ctl_proto.h b/include/l1ctl_proto.h index c9585188..fa8814be 100644 --- a/include/l1ctl_proto.h +++ b/include/l1ctl_proto.h @@ -56,6 +56,10 @@ enum { L1CTL_TRAFFIC_REQ, L1CTL_TRAFFIC_CONF, L1CTL_TRAFFIC_IND, + L1CTL_BTS_MODE, + L1CTL_BTS_BURST_REQ, + L1CTL_BTS_BURST_NB_IND, + L1CTL_BTS_BURST_AB_IND, }; enum ccch_mode { @@ -303,4 +307,33 @@ struct l1ctl_traffic_req { uint8_t data[TRAFFIC_DATA_LEN]; } __attribute__((packed)); +/* BTS mode: config */ +struct l1ctl_bts_mode { + uint8_t enabled; + uint8_t bsic; + uint16_t band_arfcn; +} __attribute__((packed)); + +/* BTS mode: Burst Request */ +struct l1ctl_bts_burst_req { + uint32_t fn; + uint8_t tn : 4; + uint8_t type : 4; + uint8_t data[0]; /* 15 for NB, 0 for others */ +} __attribute__((packed)); + +/* BTS mode: NB Burst Indication */ +struct l1ctl_bts_burst_nb_ind { + uint32_t fn; + uint8_t tn; + uint8_t toa; + uint8_t data[15]; +} __attribute__((packed)); + +/* BTS mode: AB Burst Indication */ +struct l1ctl_bts_burst_ab_ind { + uint32_t fn; + uint8_t iq[2*88]; +} __attribute__((packed)); + #endif /* __L1CTL_PROTO_H__ */ -- cgit v1.2.3