le_gpio_interface.h
Go to the documentation of this file.
1 /*
2  * ====================== WARNING ======================
3  *
4  * THE CONTENTS OF THIS FILE HAVE BEEN AUTO-GENERATED.
5  * DO NOT MODIFY IN ANY WAY.
6  *
7  * ====================== WARNING ======================
8  */
9 
80 #ifndef LE_GPIO_INTERFACE_H_INCLUDE_GUARD
81 #define LE_GPIO_INTERFACE_H_INCLUDE_GUARD
82 
83 
84 #include "legato.h"
85 
86 //--------------------------------------------------------------------------------------------------
90 //--------------------------------------------------------------------------------------------------
92 (
93  void
94 );
95 
96 //--------------------------------------------------------------------------------------------------
100 //--------------------------------------------------------------------------------------------------
102 (
103  void
104 );
105 
106 
107 //--------------------------------------------------------------------------------------------------
111 //--------------------------------------------------------------------------------------------------
112 typedef enum
113 {
116 
119 }
121 
122 
123 //--------------------------------------------------------------------------------------------------
127 //--------------------------------------------------------------------------------------------------
128 typedef enum
129 {
132 
135 
138 
141 }
143 
144 
145 //--------------------------------------------------------------------------------------------------
149 //--------------------------------------------------------------------------------------------------
150 typedef struct le_gpio_ChangeEventHandler* le_gpio_ChangeEventHandlerRef_t;
151 
152 
153 //--------------------------------------------------------------------------------------------------
161 //--------------------------------------------------------------------------------------------------
162 typedef void (*le_gpio_ChangeCallbackFunc_t)
163 (
164  bool state,
165  void* contextPtr
166 );
167 
168 //--------------------------------------------------------------------------------------------------
172 //--------------------------------------------------------------------------------------------------
174 (
175  le_gpio_Polarity_t polarity
178 );
179 
180 //--------------------------------------------------------------------------------------------------
184 //--------------------------------------------------------------------------------------------------
186 (
187  le_gpio_Polarity_t polarity,
190 
191  bool value
194 );
195 
196 //--------------------------------------------------------------------------------------------------
202 //--------------------------------------------------------------------------------------------------
204 (
205  le_gpio_Polarity_t polarity
208 );
209 
210 //--------------------------------------------------------------------------------------------------
215 //--------------------------------------------------------------------------------------------------
217 (
218  le_gpio_Polarity_t polarity,
221 
222  bool value
225 );
226 
227 //--------------------------------------------------------------------------------------------------
231 //--------------------------------------------------------------------------------------------------
233 (
234  void
235 );
236 
237 //--------------------------------------------------------------------------------------------------
241 //--------------------------------------------------------------------------------------------------
243 (
244  void
245 );
246 
247 //--------------------------------------------------------------------------------------------------
251 //--------------------------------------------------------------------------------------------------
253 (
254  void
255 );
256 
257 //--------------------------------------------------------------------------------------------------
263 //--------------------------------------------------------------------------------------------------
265 (
266  void
267 );
268 
269 //--------------------------------------------------------------------------------------------------
275 //--------------------------------------------------------------------------------------------------
277 (
278  void
279 );
280 
281 //--------------------------------------------------------------------------------------------------
287 //--------------------------------------------------------------------------------------------------
289 (
290  void
291 );
292 
293 //--------------------------------------------------------------------------------------------------
301 //--------------------------------------------------------------------------------------------------
302 bool le_gpio_Read
303 (
304  void
305 );
306 
307 //--------------------------------------------------------------------------------------------------
316 //--------------------------------------------------------------------------------------------------
318 (
319  le_gpio_Edge_t trigger,
322 
323  le_gpio_ChangeCallbackFunc_t handlerPtr,
325 
326  void* contextPtr,
328 
329  int32_t sampleMs
332 );
333 
334 //--------------------------------------------------------------------------------------------------
338 //--------------------------------------------------------------------------------------------------
340 (
341  le_gpio_ChangeEventHandlerRef_t addHandlerRef
343 );
344 
345 
346 #endif // LE_GPIO_INTERFACE_H_INCLUDE_GUARD
347 
void le_gpio_DisconnectService(void)
GPIO active-high, output is 1.
Definition: le_gpio_interface.h:114
Notify when pin voltage changes state in either direction.
Definition: le_gpio_interface.h:139
le_result_t
Definition: le_basics.h:35
void le_gpio_ConnectService(void)
le_result_t le_gpio_EnablePullUp(void)
Notify when voltage goes from high to low.
Definition: le_gpio_interface.h:136
GPIO active-low, output is 0.
Definition: le_gpio_interface.h:117
le_result_t le_gpio_SetTriStateOutput(le_gpio_Polarity_t polarity)
le_result_t le_gpio_SetHighZ(void)
le_gpio_Polarity_t
Definition: le_gpio_interface.h:112
bool le_gpio_Read(void)
Notify when voltage goes from low to high.
Definition: le_gpio_interface.h:133
le_result_t le_gpio_EnablePullDown(void)
le_gpio_ChangeEventHandlerRef_t le_gpio_AddChangeEventHandler(le_gpio_Edge_t trigger, le_gpio_ChangeCallbackFunc_t handlerPtr, void *contextPtr, int32_t sampleMs)
le_result_t le_gpio_Deactivate(void)
void le_gpio_RemoveChangeEventHandler(le_gpio_ChangeEventHandlerRef_t addHandlerRef)
le_result_t le_gpio_SetPushPullOutput(le_gpio_Polarity_t polarity, bool value)
No edge detection.
Definition: le_gpio_interface.h:130
struct le_gpio_ChangeEventHandler * le_gpio_ChangeEventHandlerRef_t
Definition: le_gpio_interface.h:150
le_result_t le_gpio_DisableResistors(void)
le_result_t le_gpio_Activate(void)
void(* le_gpio_ChangeCallbackFunc_t)(bool state, void *contextPtr)
Definition: le_gpio_interface.h:163
le_result_t le_gpio_SetInput(le_gpio_Polarity_t polarity)
le_result_t le_gpio_SetOpenDrainOutput(le_gpio_Polarity_t polarity, bool value)
le_gpio_Edge_t
Definition: le_gpio_interface.h:128