Subversion Repositories Projects

Rev

Blame | Last modification | View Log | RSS feed

#ifndef _TYPES_H
 #define _TYPES_H

typedef signed char int8;
typedef unsigned char u8;
typedef signed int int16;
typedef unsigned int u16;
typedef signed long int int32;
typedef unsigned long int u32;
typedef signed long long int int64;
typedef unsigned long long int u64;

#define TRUE            1
#define FALSE           0

//>> Main struct for Communication
//------------------------------------------------------------------------------------------------------
typedef struct
{
        u8 c;
        u8 collecting;
        int count;
        u8 address;
        u8 cmdID;
        u8 data[1024];
        u8 collecting_data[1024];
        u8 txrxdata[1024];
        u16 position;
        u16 dataLength;
        u8 position_package;
        u8 position_package_gps;
        u16 cmdLength;
        u8 readyForTransmit;
        u8 length_payload;
        u8 msg_id;
        u8 gps_data[30][20];
}__attribute__((packed)) serial_data_struct;

#endif //_TYPES_H