DHCOM_HAL
Hardware-abstraction library (HAL) for multiple targets, including DHCOM modules
Main Page
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Typedefs
Enumerations
Enumerator
Macros
Pages
include
hal
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
48
STATUS_SUCCESS
= 0,
49
STATUS_HARDWARE_UNDEFINED
,
50
STATUS_HARDWARE_ALREADY_DEFINED
,
51
STATUS_HARDWARE_UNSUPPORTED
,
52
STATUS_DEVICE_DOESNT_EXIST
,
53
54
// common device responses
55
STATUS_DEVICE_OPEN_FAILED
,
56
STATUS_DEVICE_CLOSE_FAILED
,
57
STATUS_DEVICE_NOT_OPEN
,
58
STATUS_DEVICE_ALREADY_OPEN
,
59
STATUS_DEVICE_READ_FAILED
,
60
STATUS_DEVICE_WRITE_FAILED
,
61
STATUS_DEVICE_CONFIG_FAILED
,
62
63
// i2c specific
64
STATUS_I2C_SLAVE_SELECT_FAILED
,
65
66
// gpio specific
67
68
// spi specific
69
70
// uart specific
71
};
72
73
80
}
81
82
83
#endif
/* TYPES_H_ */
Generated on Thu Jun 12 2014 11:29:50 for DHCOM_HAL by
1.8.2