#include "config.h"
#include "net.h"
+typedef struct {
+ uint32_t timestamp;
+ u16_t seq;
+ u8_t send_count;
+} send_t;
+
enum event_type { BUTTONPRESS, SEND };
typedef struct {
enum event_type type;
struct {
uint32_t timestamp;
} buttonpress;
- struct {
- uint32_t timestamp;
- u16_t seq;
- u8_t send_count;
- } send;
+ send_t send;
};
} event_t;