diff options
Diffstat (limited to 'client/main.h')
-rw-r--r-- | client/main.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/client/main.h b/client/main.h new file mode 100644 index 0000000..cc4c728 --- /dev/null +++ b/client/main.h @@ -0,0 +1,20 @@ +#pragma once + +#include "../shared/protocol.h" + +typedef struct { + unsigned int ping; + uint8_t ping_id; + bool ping_received; + bool ping_timeout; + + bool connected; + uint8_t battery_level; + + uint8_t mode; + + w2_s_cmd_info_tx info; + w2_s_cmd_sens_tx io; +} w2_s_client_state; + +extern w2_s_client_state g_w2_state; |