Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2105 | - | 1 | #ifndef _TYPES_H |
2 | #define _TYPES_H |
||
3 | |||
4 | typedef unsigned char u8; |
||
5 | typedef unsigned short u16; |
||
6 | |||
7 | typedef struct |
||
8 | { |
||
9 | u8 address; |
||
10 | u8 cmdID; |
||
11 | u8 data[1024]; |
||
12 | u8 txrxdata[1024]; |
||
13 | u8 collecting; |
||
14 | u8 position_package; |
||
15 | u16 cmdLength; |
||
16 | |||
17 | }__attribute__((packed)) serial_data_struct; |
||
18 | |||
19 | |||
20 | typedef struct |
||
21 | { |
||
22 | u8 c; |
||
23 | u8 data[1024]; |
||
24 | u16 position_rx; |
||
25 | u16 count; |
||
26 | }__attribute__((packed)) data_rx_st; |
||
27 | |||
28 | |||
29 | struct str_ExternControl |
||
30 | { |
||
31 | signed char Nick; |
||
32 | signed char Roll; |
||
33 | signed char Gier; |
||
34 | signed char Gas; |
||
35 | unsigned char Frame; // will return a confirm frame with this value |
||
36 | unsigned char Config; |
||
37 | unsigned char free; |
||
38 | }; |
||
39 | |||
40 | #endif //_TYPES_H |