summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2013-01-16 23:04:45 +0100
committerSylvain Munaut <tnt@246tNt.com>2013-01-16 23:08:01 +0100
commit3ca53ed9623d65c7f1fecdc6d0f273e71e9fae3d (patch)
tree5fc9002e122417100bc1c621ff518750f1b70f67 /include
parentd14b78969ea452a6e796732018fb6b0bca24aaf7 (diff)
l1ctl: Add BTS mode message definitions
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'include')
-rw-r--r--include/l1ctl_proto.h33
1 files changed, 33 insertions, 0 deletions
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__ */