summaryrefslogtreecommitdiffstats
path: root/include/l1ctl_proto.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-04-28 14:43:50 +0200
committerHarald Welte <laforge@gnumonks.org>2017-04-28 14:43:50 +0200
commitca0042dbbbca3d249557c1c2a7992f462d38adc3 (patch)
treef0b1d07d721e50f16929c7f5f8ab20e6257b1bf0 /include/l1ctl_proto.h
parent0f3c33dc4f008a1fc404de1d2a6ee756801219eb (diff)
WIP: DEVCFG to set baud ratelaforge/burst_ind
Diffstat (limited to 'include/l1ctl_proto.h')
-rw-r--r--include/l1ctl_proto.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/l1ctl_proto.h b/include/l1ctl_proto.h
index ab80aa12..7fc5955d 100644
--- a/include/l1ctl_proto.h
+++ b/include/l1ctl_proto.h
@@ -57,6 +57,8 @@ enum {
L1CTL_TRAFFIC_CONF,
L1CTL_TRAFFIC_IND,
L1CTL_BURST_IND,
+ L1CTL_DEVCFG_REQ,
+ L1CTL_DEVCFG_CONF,
};
enum ccch_mode {
@@ -315,4 +317,21 @@ struct l1ctl_traffic_req {
uint8_t data[TRAFFIC_DATA_LEN];
} __attribute__((packed));
+/* device configuration request and response */
+enum l1ctl_devcfg_cmd {
+ L1CTL_DEVCFG_CMD_BAUDRATE,
+};
+
+struct l1ctl_devcfg_req {
+ uint8_t cmd;
+ union {
+ uint32_t baudrate;
+ };
+} __attribute__((packed));
+
+struct l1ctl_devcfg_resp {
+ uint8_t cmd;
+ uint8_t result;
+} __attribute__((packed));
+
#endif /* __L1CTL_PROTO_H__ */