Logo
UNICENS V2.1.0-3491
User Manual and API Reference
Ucs_Gpio_InitData_t Struct Reference

The initialization structure of the GPIO Module. More...

Data Fields

Ucs_Gpio_TriggerEventResultCb_t trigger_event_status_fptr
 Callback function that reports trigger events information of the GPIO Port.
 

Detailed Description

The initialization structure of the GPIO Module.


Example

Ucs_InitData_t ucs_init_data;
(void)Ucs_SetDefaultConfig(&ucs_init_data)
// Resources Management init section.
ucs_init_data.gpio.trigger_event_status_fptr = &App_GpioTriggerEventStatusCb;
// Handle the GPIO trigger events here
void App_GpioTriggerEventStatusCb(uint16_t node_address,
uint16_t gpio_port_handle,
uint16_t rising_edges,
uint16_t falling_edges,
uint16_t levels,
void * user_ptr)
{
// Do what needs to be..
}