Logo
UNICENS V2.1.0-3491
User Manual and API Reference
typedef void(* Ucs_Gpio_PinStateResCb_t)(uint16_t node_address, uint16_t gpio_port_handle, uint16_t current_state, uint16_t sticky_state, Ucs_Gpio_Result_t result, void *user_ptr)

Function signature of result callback used by Ucs_Gpio_WritePort() and Ucs_Gpio_ReadPort().

Parameters
node_addressThe node address of the device from where the results come
gpio_port_handleThe port resource handle.
current_stateThe current state of the GPIO pin
sticky_stateThe sticky state of all GPIO pins configured as sticky inputs.
resultThe operation result
user_ptrUser reference provided in Ucs_InitData_t::user_ptr