DHCOM_HAL
Hardware-abstraction library (HAL) for multiple targets, including DHCOM modules
 All Data Structures Namespaces Files Functions Typedefs Enumerations Enumerator Macros Pages
Types.h
Go to the documentation of this file.
1 /*
2  * Types.h
3  *
4  * Created on: Jun 23, 2013
5  * Author: Peter Kishalov (PK), DH electronics GmbH
6  */
7 
8 #ifndef TYPES_H_
9 #define TYPES_H_
10 
11 #ifdef __GNUC__
12 
13 # include <stdint.h>
14 
15 #elif defined(_MSC_VER) && (_MSC_VER > 1300)
16 
17 typedef signed __int8 int8_t;
18 typedef signed __int16 int16_t;
19 typedef signed __int32 int32_t;
20 typedef unsigned __int8 uint8_t;
21 typedef unsigned __int16 uint16_t;
22 typedef unsigned __int32 uint32_t;
23 
24 #else
25 
26 typedef signed char int8_t;
27 typedef signed short int16_t;
28 typedef signed int int32_t;
29 typedef unsigned char uint8_t;
30 typedef unsigned short uint16_t;
31 typedef unsigned int uint32_t;
32 
33 #endif
34 
35 
36 namespace dhcom
37 {
38 
45 enum STATUS
46 {
47  // system responses
53 
54  // common device responses
62 
63  // i2c specific
65 
66  // gpio specific
67 
68  // spi specific
69 
70  // uart specific
71 };
72 
73 
80 }
81 
82 
83 #endif /* TYPES_H_ */