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 
110 #ifndef LE_GPIO_INTERFACE_H_INCLUDE_GUARD
111 #define LE_GPIO_INTERFACE_H_INCLUDE_GUARD
112 
113 
114 #include "legato.h"
115 
116 //--------------------------------------------------------------------------------------------------
127 //--------------------------------------------------------------------------------------------------
129 (
130  void
131 );
132 
133 //--------------------------------------------------------------------------------------------------
144 //--------------------------------------------------------------------------------------------------
146 (
147  void
148 );
149 
150 
151 //--------------------------------------------------------------------------------------------------
155 //--------------------------------------------------------------------------------------------------
156 typedef enum
157 {
160 
163 }
165 
166 
167 //--------------------------------------------------------------------------------------------------
171 //--------------------------------------------------------------------------------------------------
172 typedef enum
173 {
176 
179 
182 
185 }
187 
188 
189 //--------------------------------------------------------------------------------------------------
193 //--------------------------------------------------------------------------------------------------
194 typedef struct le_gpio_ChangeEventHandler* le_gpio_ChangeEventHandlerRef_t;
195 
196 
197 //--------------------------------------------------------------------------------------------------
201 //--------------------------------------------------------------------------------------------------
202 typedef enum
203 {
206 
209 
212 }
214 
215 
216 //--------------------------------------------------------------------------------------------------
224 //--------------------------------------------------------------------------------------------------
225 typedef void (*le_gpio_ChangeCallbackFunc_t)
226 (
227  bool state,
228  void* contextPtr
229 );
230 
231 //--------------------------------------------------------------------------------------------------
235 //--------------------------------------------------------------------------------------------------
237 (
238  le_gpio_Polarity_t polarity
241 );
242 
243 //--------------------------------------------------------------------------------------------------
247 //--------------------------------------------------------------------------------------------------
249 (
250  le_gpio_Polarity_t polarity,
253 
254  bool value
257 );
258 
259 //--------------------------------------------------------------------------------------------------
265 //--------------------------------------------------------------------------------------------------
267 (
268  le_gpio_Polarity_t polarity
271 );
272 
273 //--------------------------------------------------------------------------------------------------
278 //--------------------------------------------------------------------------------------------------
280 (
281  le_gpio_Polarity_t polarity,
284 
285  bool value
288 );
289 
290 //--------------------------------------------------------------------------------------------------
294 //--------------------------------------------------------------------------------------------------
296 (
297  void
298 );
299 
300 //--------------------------------------------------------------------------------------------------
304 //--------------------------------------------------------------------------------------------------
306 (
307  void
308 );
309 
310 //--------------------------------------------------------------------------------------------------
314 //--------------------------------------------------------------------------------------------------
316 (
317  void
318 );
319 
320 //--------------------------------------------------------------------------------------------------
326 //--------------------------------------------------------------------------------------------------
328 (
329  void
330 );
331 
332 //--------------------------------------------------------------------------------------------------
338 //--------------------------------------------------------------------------------------------------
340 (
341  void
342 );
343 
344 //--------------------------------------------------------------------------------------------------
350 //--------------------------------------------------------------------------------------------------
352 (
353  void
354 );
355 
356 //--------------------------------------------------------------------------------------------------
364 //--------------------------------------------------------------------------------------------------
365 bool le_gpio_Read
366 (
367  void
368 );
369 
370 //--------------------------------------------------------------------------------------------------
382 //--------------------------------------------------------------------------------------------------
384 (
385  le_gpio_Edge_t trigger,
388 
389  le_gpio_ChangeCallbackFunc_t handlerPtr,
391 
392  void* contextPtr,
394 
395  int32_t sampleMs
398 );
399 
400 //--------------------------------------------------------------------------------------------------
404 //--------------------------------------------------------------------------------------------------
406 (
407  le_gpio_ChangeEventHandlerRef_t addHandlerRef
409 );
410 
411 //--------------------------------------------------------------------------------------------------
416 //--------------------------------------------------------------------------------------------------
418 (
419  le_gpio_Edge_t trigger
422 );
423 
424 //--------------------------------------------------------------------------------------------------
428 //--------------------------------------------------------------------------------------------------
430 (
431  void
432 );
433 
434 //--------------------------------------------------------------------------------------------------
440 //--------------------------------------------------------------------------------------------------
441 bool le_gpio_IsOutput
442 (
443  void
444 );
445 
446 //--------------------------------------------------------------------------------------------------
452 //--------------------------------------------------------------------------------------------------
453 bool le_gpio_IsInput
454 (
455  void
456 );
457 
458 //--------------------------------------------------------------------------------------------------
466 //--------------------------------------------------------------------------------------------------
468 (
469  void
470 );
471 
472 //--------------------------------------------------------------------------------------------------
478 //--------------------------------------------------------------------------------------------------
480 (
481  void
482 );
483 
484 //--------------------------------------------------------------------------------------------------
492 //--------------------------------------------------------------------------------------------------
493 bool le_gpio_IsActive
494 (
495  void
496 );
497 
498 //--------------------------------------------------------------------------------------------------
504 //--------------------------------------------------------------------------------------------------
506 (
507  void
508 );
509 
510 
511 #endif // LE_GPIO_INTERFACE_H_INCLUDE_GUARD
512 
void le_gpio_DisconnectService(void)
bool le_gpio_IsInput(void)
GPIO active-high, output is 1.
Definition: le_gpio_interface.h:158
Notify when pin voltage changes state in either direction.
Definition: le_gpio_interface.h:183
le_result_t
Definition: le_basics.h:35
le_gpio_PullUpDown_t
Definition: le_gpio_interface.h:202
void le_gpio_ConnectService(void)
le_result_t le_gpio_EnablePullUp(void)
bool le_gpio_IsActive(void)
le_gpio_Polarity_t le_gpio_GetPolarity(void)
le_result_t le_gpio_DisableEdgeSense(void)
Notify when voltage goes from high to low.
Definition: le_gpio_interface.h:180
GPIO active-low, output is 0.
Definition: le_gpio_interface.h:161
le_result_t le_gpio_SetTriStateOutput(le_gpio_Polarity_t polarity)
le_gpio_Edge_t le_gpio_GetEdgeSense(void)
le_result_t le_gpio_SetHighZ(void)
le_gpio_Polarity_t
Definition: le_gpio_interface.h:156
bool le_gpio_Read(void)
Notify when voltage goes from low to high.
Definition: le_gpio_interface.h:177
le_result_t le_gpio_EnablePullDown(void)
bool le_gpio_IsOutput(void)
Pulldown resistor is enabled.
Definition: le_gpio_interface.h:207
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)
le_result_t le_gpio_SetEdgeSense(le_gpio_Edge_t trigger)
void le_gpio_RemoveChangeEventHandler(le_gpio_ChangeEventHandlerRef_t addHandlerRef)
Neither resistor is enabled.
Definition: le_gpio_interface.h:204
le_result_t le_gpio_SetPushPullOutput(le_gpio_Polarity_t polarity, bool value)
No edge detection.
Definition: le_gpio_interface.h:174
struct le_gpio_ChangeEventHandler * le_gpio_ChangeEventHandlerRef_t
Definition: le_gpio_interface.h:194
le_result_t le_gpio_DisableResistors(void)
le_result_t le_gpio_Activate(void)
Pullup resistor is enabled.
Definition: le_gpio_interface.h:210
void(* le_gpio_ChangeCallbackFunc_t)(bool state, void *contextPtr)
Definition: le_gpio_interface.h:226
le_result_t le_gpio_SetInput(le_gpio_Polarity_t polarity)
le_gpio_PullUpDown_t le_gpio_GetPullUpDown(void)
le_result_t le_gpio_SetOpenDrainOutput(le_gpio_Polarity_t polarity, bool value)
le_gpio_Edge_t
Definition: le_gpio_interface.h:172