Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
gpio_input_args Struct Reference

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...
 

Detailed Description

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.

Member Data Documentation

◆ callback

int(* gpio_input_args::callback) (void)

Callback called when an interrupt is triggered by this pin.

◆ debounce

module_pin_debounce gpio_input_args::debounce

Whether to use debouncing.

◆ irq

module_pin_irq gpio_input_args::irq

Which edge, if any, to trigger an interrupt on.

◆ mpin

u8_t gpio_input_args::mpin

Number of the pin.

◆ pullup

module_pin_pullup gpio_input_args::pullup

Whether to use a pullup or not.


The documentation for this struct was generated from the following file: