Wirepas SDK
io.h
Go to the documentation of this file.
1 /* Copyright 2017 Wirepas Ltd. All Rights Reserved.
2  *
3  * See file LICENSE.txt for full license details.
4  *
5  */
6 
7 #ifndef EXTI_H_
8 #define EXTI_H_
9 
10 #include "api.h"
11 
16 void Io_init(void);
17 
21 void Io_enableUartIrq(void);
22 
26 void Io_setUartIrq(void);
27 
31 void Io_clearUartIrq(void);
32 
33 typedef enum
34 {
39 
43 typedef void (*wakeup_cb_f)(void);
44 
52 
56 void Wakeup_off(void);
57 
61 void Wakeup_clearIrq(void);
62 
70 void Wakeup_setEdgeIRQ(exti_irq_config_e edge, bool enable);
71 #endif /* EXTI_H_ */
EXTI_IRQ_STATE_CHANGE
@ EXTI_IRQ_STATE_CHANGE
Definition: io.h:37
Io_setUartIrq
void Io_setUartIrq(void)
Sets (asserts) UART IRQ pin.
Wakeup_pinInit
void Wakeup_pinInit(wakeup_cb_f cb)
Setup wake-up pin.
Io_clearUartIrq
void Io_clearUartIrq(void)
Clears (de-asserts) UART IRQ pin.
Wakeup_off
void Wakeup_off(void)
Disable wake-up functionality.
exti_irq_config_e
exti_irq_config_e
Definition: io.h:33
wakeup_cb_f
void(* wakeup_cb_f)(void)
Mandatory callback for EXTI events.
Definition: io.h:43
Io_enableUartIrq
void Io_enableUartIrq(void)
Enables UART IRQ pin.
Io_init
void Io_init(void)
Initialize IO's to a known state.
EXTI_IRQ_FALLING_EDGE
@ EXTI_IRQ_FALLING_EDGE
Definition: io.h:36
Wakeup_setEdgeIRQ
void Wakeup_setEdgeIRQ(exti_irq_config_e edge, bool enable)
Change edge for wake-up pin.
Wakeup_clearIrq
void Wakeup_clearIrq(void)
Clear interrupt source flag.
EXTI_IRQ_RISING_EDGE
@ EXTI_IRQ_RISING_EDGE
Definition: io.h:35
api.h