EFM32 Zero Gecko Software Documentation  efm32zg-doc-4.2.1
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;
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 Sample Data Structure.
Definition: si114x_types.h:90
uint16_t timestamp
Definition: si114x_types.h:93