My Project
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
dataTypes.h
Go to the documentation of this file.
1 
2 /*==============================================================================
3  File Name: dataTypes.h
4  Author : ccortiz
5 
6  Description:
7  Data Types for API description.
8  ==============================================================================
9 */
10 
11 #ifndef __DATA_TYPES_H__
12 #define __DATA_TYPES_H__
13 
14 #define _DEBUG_
15 
16 #ifdef _DEBUG_
17  #include <stdio.h>
18 
19  #define _DBGMSG_(yourString) printf(yourString)
20 #else
21  #define _DBGMSG_(yourString) /*Nothing*/
22 #endif
23 
24 #define _ALLOW_MALLOC_ 1
25 #define _TRUE_ 1
26 #define _FALSE_ 0
27 
32  typedef unsigned char byte;
33  typedef unsigned char* byte_ptr;
34  typedef signed char sint8;
35  typedef signed short int sint16;
36  typedef signed int sint32;
37 
38  typedef unsigned char uint8;
39  typedef unsigned short int uint16;
40  typedef unsigned int uint32;
41 
42  typedef unsigned char boolean;
43 
44  typedef byte_ptr(*serializerPtr)(int msgDescriptor);
45  typedef int(*deserializerPtr)(int ICD_Descriptor, byte_ptr dataBuffer,uint16 bufferSize, boolean decodeMessage);
46  typedef void (*setEndiannessPtr)(int, enum endianness);
47  typedef int(*getMsgSizePtr)(int msgDescriptor);
48 
49 
50 #endif
51