Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
|
Arguments for the BSP_ModuleRegisterGPIOInput function. More...
#include <baremetal/cascoda-bm-driver/include/cascoda-bm/cascoda_interface.h>
Public Attributes | |
u8_t | mpin |
Number of the pin. More... | |
module_pin_pullup | pullup |
Whether to use a pullup or not. More... | |
module_pin_debounce | debounce |
Whether to use debouncing. More... | |
module_pin_irq | irq |
Which edge, if any, to trigger an interrupt on. More... | |
int(* | callback )(void) |
Callback called when an interrupt is triggered by this pin. More... | |
Arguments for the BSP_ModuleRegisterGPIOInput function.
Passing the arguments through a structure is necessary because GCC TrustZone support is very primitive. Because there are too many arguments to pass them through registers, GCC refuses to compile the sensible way of doing this.
int(* gpio_input_args::callback) (void) |
Callback called when an interrupt is triggered by this pin.
module_pin_debounce gpio_input_args::debounce |
Whether to use debouncing.
module_pin_irq gpio_input_args::irq |
Which edge, if any, to trigger an interrupt on.
u8_t gpio_input_args::mpin |
Number of the pin.
module_pin_pullup gpio_input_args::pullup |
Whether to use a pullup or not.