xbee_proto: replace printf printf_P
[protos/xbee-avr.git] / rc_proto.h
1 #ifndef RC_PROTO_H
2 #define RC_PROTO_H
3
4 #define AXIS_NUMBER 4
5
6 #define RC_PROTO_TYPE_CHANNEL 0
7 #define RC_PROTO_TYPE_RANGE   1
8
9
10 /* TODO: Authenticate packet!! */
11
12 struct rc_proto_hdr {
13         uint8_t type;
14 } __attribute__((packed));
15
16 struct rc_proto_channel {
17         uint8_t type;
18         int16_t axis[AXIS_NUMBER];
19 } __attribute__((packed));
20
21 struct rc_proto_range {
22         uint8_t type;
23         uint8_t power_level;
24 } __attribute__((packed));
25
26
27 void rc_proto_rx_range(int power_level);
28
29 #endif