summaryrefslogtreecommitdiff
path: root/client/main.h
blob: cc4c72818da618831be7dc5c02c569c331d07fff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;