#define RC_PROTO_TYPE_RANGE 1
+#define RX_DB_THRESHOLD 0x40
+
/* TODO: Authenticate packet!! */
+extern uint64_t rc_send_dstaddr;
+
+struct rc_proto_hdr {
+ uint8_t type;
+} __attribute__((packed));
+
struct rc_proto_channel {
uint8_t type;
int16_t axis[AXIS_NUMBER];
-};
+} __attribute__((packed));
struct rc_proto_range {
uint8_t type;
uint8_t power_level;
-};
+} __attribute__((packed));
+
+void rc_proto_rx_range(int power_level);
+void rc_proto_send_channels(void);
+void rc_proto_init(void);
#endif