EZR32 Leopard Gecko Software Documentation
ezr32lg-doc-4.2.1
Main Page
Modules
Data Structures
Files
Documentation Home
silabs.com
File List
Globals
si114x_types.h
Go to the documentation of this file.
1
/*************************************************************************/
27
#ifndef SI114X_TYPES
28
#define SI114X_TYPES
29
30
/***************************************************************************/
35
/***************************************************************************/
40
#include "stdint.h"
41
42
#ifdef __cplusplus
43
extern
"C"
{
44
#endif
45
47
typedef
signed
char
s8;
48
typedef
signed
short
s16;
49
typedef
signed
int
s32;
50
typedef
unsigned
char
u8;
51
typedef
unsigned
short
u16;
52
typedef
unsigned
int
u32;
53
54
typedef
signed
char
S8;
55
typedef
signed
short
S16;
56
typedef
signed
int
S32;
57
typedef
unsigned
char
U8;
58
typedef
unsigned
short
U16;
59
typedef
unsigned
int
U32;
60
61
typedef
void
* HANDLE;
62
typedef
char
* STRING;
63
typedef
s16 PT_RESULT;
64
typedef
s8 PT_BOOL;
66
67
/**************************************************************************/
90
typedef
struct
91
{
92
uint16_t
sequence
;
93
uint16_t
timestamp
;
94
uint8_t
pad
;
95
uint8_t
irqstat
;
96
uint16_t
vis
;
97
uint16_t
ir
;
98
uint16_t
ps1
;
99
uint16_t
ps2
;
100
uint16_t
ps3
;
101
uint16_t
aux
;
102
}
SI114X_IRQ_SAMPLE
;
103
105
#define code
106
#define xdata
107
108
#define LSB 0
109
#define MSB 1
110
#define b0 0
111
#define b1 1
112
#define b2 2
113
#define b3 3
114
115
typedef
union
uu16
116
{
117
u16 u16;
118
s16 s16;
119
u8 u8[2];
120
s8 s8[2];
121
} uu16;
122
123
typedef
union
uu32
124
{
125
u32 u32;
126
s32 s32;
127
uu16 uu16[2];
128
u16 u16[2];
129
s16 s16[2];
130
u8 u8[4];
131
s8 s8[4];
132
133
} uu32;
134
135
typedef
char
BIT;
136
137
#ifndef TRUE
138
#define TRUE 0xff
139
#endif
140
141
#ifndef FALSE
142
#define FALSE 0
143
#endif
144
145
#ifndef NULL
146
#define NULL 0
147
#endif
148
150
151
#ifdef __cplusplus
152
}
153
#endif
154
158
#endif
SI114X_IRQ_SAMPLE::irqstat
uint8_t irqstat
Definition:
si114x_types.h:95
SI114X_IRQ_SAMPLE
Si114x Sample Data Structure.
Definition:
si114x_types.h:90
SI114X_IRQ_SAMPLE::vis
uint16_t vis
Definition:
si114x_types.h:96
SI114X_IRQ_SAMPLE::pad
uint8_t pad
Definition:
si114x_types.h:94
SI114X_IRQ_SAMPLE::ps3
uint16_t ps3
Definition:
si114x_types.h:100
SI114X_IRQ_SAMPLE::aux
uint16_t aux
Definition:
si114x_types.h:101
SI114X_IRQ_SAMPLE::sequence
uint16_t sequence
Definition:
si114x_types.h:92
SI114X_IRQ_SAMPLE::ir
uint16_t ir
Definition:
si114x_types.h:97
SI114X_IRQ_SAMPLE::timestamp
uint16_t timestamp
Definition:
si114x_types.h:93
SI114X_IRQ_SAMPLE::ps1
uint16_t ps1
Definition:
si114x_types.h:98
SI114X_IRQ_SAMPLE::ps2
uint16_t ps2
Definition:
si114x_types.h:99
kits
common
drivers
si114x_types.h
Generated on Tue Dec 8 2015 15:41:30 for EZR32 Leopard Gecko Software Documentation by
1.8.10