EFR32 Blue Gecko 1 Software Documentation  efr32bg1-doc-5.1.2
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 typedef union uu16
109 {
110  u16 u16;
111  s16 s16;
112  u8 u8[2];
113  s8 s8[2];
114 } uu16;
115 
116 typedef union uu32
117 {
118  u32 u32;
119  s32 s32;
120  uu16 uu16[2];
121  u16 u16[2];
122  s16 s16[2];
123  u8 u8[4];
124  s8 s8[4];
125 
126 } uu32;
127 
128 typedef char BIT;
129 
130 #ifndef TRUE
131 #define TRUE 0xff
132 #endif
133 
134 #ifndef FALSE
135 #define FALSE 0
136 #endif
137 
138 #ifndef NULL
139 #define NULL 0
140 #endif
141 
143 
144 #ifdef __cplusplus
145 }
146 #endif
147 
151 #endif
Si114x Sample Data Structure.
Definition: si114x_types.h:90
unsigned short int u16
Definition: bmp280.h:283
unsigned int u32
Definition: bmp280.h:284
signed int s32
Definition: bmp280.h:278
signed short int s16
Definition: bmp280.h:277
unsigned char u8
Definition: bmp280.h:282
uint16_t timestamp
Definition: si114x_types.h:93
signed char s8
Definition: bmp280.h:276