From ca0042dbbbca3d249557c1c2a7992f462d38adc3 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 28 Apr 2017 14:43:50 +0200 Subject: WIP: DEVCFG to set baud rate Change-Id: Iaacc2427ef4ae371a26841f436efb5cc04b818b5 --- include/l1ctl_proto.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'include/l1ctl_proto.h') 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__ */ -- cgit v1.2.3