Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2105 | - | 1 | #ifndef _TYPES_H |
2 | #define _TYPES_H |
||
3 | |||
4 | typedef signed char int8; |
||
5 | typedef unsigned char u8; |
||
6 | typedef signed int int16; |
||
7 | typedef unsigned int u16; |
||
8 | typedef signed long int int32; |
||
9 | typedef unsigned long int u32; |
||
10 | typedef signed long long int int64; |
||
11 | typedef unsigned long long int u64; |
||
12 | |||
13 | #define TRUE 1 |
||
14 | #define FALSE 0 |
||
15 | |||
16 | //>> Main struct for Communication |
||
17 | //------------------------------------------------------------------------------------------------------ |
||
18 | typedef struct |
||
19 | { |
||
20 | u8 c; |
||
21 | u8 collecting; |
||
22 | int count; |
||
23 | u8 address; |
||
24 | u8 cmdID; |
||
25 | u8 data[1024]; |
||
26 | u8 collecting_data[1024]; |
||
27 | u8 txrxdata[1024]; |
||
28 | u16 position; |
||
29 | u16 dataLength; |
||
30 | u8 position_package; |
||
31 | u8 position_package_gps; |
||
32 | u16 cmdLength; |
||
33 | u8 readyForTransmit; |
||
34 | u8 length_payload; |
||
35 | u8 msg_id; |
||
36 | u8 gps_data[30][20]; |
||
37 | }__attribute__((packed)) serial_data_struct; |
||
38 | |||
39 | #endif //_TYPES_H |