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

Provides service functions to handle data communication over GPIO. More...

Topics

 GPIO Referred Types
 Referred types used by the Extended Resource Manager.
 

Data Structures

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

Functions

Ucs_Return_t Ucs_Gpio_CreatePort (Ucs_Inst_t *self, uint16_t destination_address, uint8_t index, uint16_t debounce_time, Ucs_Gpio_CreatePortResCb_t result_fptr)
 Creates the GPIO port with its associated port instance identifier.
 
Ucs_Return_t Ucs_Gpio_SetPinMode (Ucs_Inst_t *self, uint16_t destination_address, uint16_t gpio_port_handle, uint8_t pin, Ucs_Gpio_PinMode_t mode, Ucs_Gpio_ConfigPinModeResCb_t result_fptr)
 Configures the pin mode of the given GPIO port.
 
Ucs_Return_t Ucs_Gpio_GetPinMode (Ucs_Inst_t *self, uint16_t destination_address, uint16_t gpio_port_handle, Ucs_Gpio_ConfigPinModeResCb_t result_fptr)
 Retrieves the pin mode configuration of the given GPIO port.
 
Ucs_Return_t Ucs_Gpio_WritePort (Ucs_Inst_t *self, uint16_t destination_address, uint16_t gpio_port_handle, uint16_t mask, uint16_t data, Ucs_Gpio_PinStateResCb_t result_fptr)
 Writes data to the given GPIO port.
 
Ucs_Return_t Ucs_Gpio_ReadPort (Ucs_Inst_t *self, uint16_t destination_address, uint16_t gpio_port_handle, Ucs_Gpio_PinStateResCb_t result_fptr)
 Reads the pin state of the given GPIO port.
 

Detailed Description

Provides service functions to handle data communication over GPIO.