My Project
Main Page
Data Structures
Files
File List
Globals
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
28
enum
endianness
{
_LITTLE_ENDIAN_
,
_BIG_ENDIAN_
};
29
enum
deserializeState
{
_DESERIALIZE_OK_
,
_INCORRECT_MSG_SIZE_
,
_INCORRECT_CONSTANT_FIELDS_
,
_ITEM_OUT_OF_RANGE_
,
_FIELDS_OUT_OF_RANGE_
,
_INVALID_DESCRIPTOR_
};
30
enum
status
{
setterError
,
setterOK
};
31
enum
msgTypes
{
_MENSAJE1_
,
_MENSAJE2_
,
_MENSAJE3_
};
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
Generated on Fri Jun 8 2012 11:51:37 for My Project by
1.8.1