aboutsummaryrefslogtreecommitdiff
path: root/shared/protocol.h
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-01-06 15:29:26 +0100
committerlonkaars <loek@pipeframe.xyz>2023-01-06 15:29:26 +0100
commitb155a5fa4b97f6f5f63f7079c671b5965db9d022 (patch)
treed089785ae1044077bb3f8e83a9dd233fbe3c2c9c /shared/protocol.h
parent62fedb0f2992222e340b62dea7f976c9bff3063e (diff)
send POST_LINK
Diffstat (limited to 'shared/protocol.h')
-rw-r--r--shared/protocol.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/shared/protocol.h b/shared/protocol.h
index cad9a1c..b9a2c93 100644
--- a/shared/protocol.h
+++ b/shared/protocol.h
@@ -60,9 +60,9 @@ typedef struct {
} cd_s_cmd_post_led;
typedef enum {
- CD_CMD_LINK_TYPE_TOGGLE = 0x00,
- CD_CMD_LINK_TYPE_TURN_ON = 0x01,
- CD_CMD_LINK_TYPE_TURN_OFF = 0x02,
+ CD_CMD_LINK_TYPE_TOGGLE = 0x00, /** @brief button toggles light */
+ CD_CMD_LINK_TYPE_TURN_ON = 0x01, /** @brief button always turns on light (regardless of previous state) */
+ CD_CMD_LINK_TYPE_TURN_OFF = 0x02, /** @brief button always turns off light (regardless of previous state) */
} cd_e_cmd_link_type;
typedef struct {
@@ -71,7 +71,7 @@ typedef struct {
cd_uuid_t button; /** @brief uuid of button node */
cd_uuid_t led; /** @brief uuid of led node */
cd_cmd_bool_t add; /** @brief `true` to create/overwrite link, `false` to remove link */
- cd_e_cmd_link_type type; /** @brief link type */
+ uint8_t type; /** @brief link type cd_e_cmd_link_type */
} cd_s_cmd_post_link;
typedef struct {