46 #define IOT_GPIO_SUCCESS ( 0 ) 47 #define IOT_GPIO_INVALID_VALUE ( 1 ) 48 #define IOT_GPIO_READ_FAILED ( 2 ) 49 #define IOT_GPIO_WRITE_FAILED ( 3 ) 50 #define IOT_GPIO_FUNCTION_NOT_SUPPORTED ( 4 ) 119 struct IotGpioDescriptor;
137 void * pvUserContext );
171 void * pvUserContext );
186 uint8_t * pucPinState );
200 uint8_t ucPinState );
237 void *
const pvBuffer );
Definition: iot_gpio.h:98
int32_t iot_gpio_read_sync(IotGpioHandle_t const pxGpio, uint8_t *pucPinState)
iot_gpio_read_sync is used to read data from GPIO pin in blocking mode.
IotGpioOutputMode_t
enum for configuring GPIO output type.
Definition: iot_gpio.h:64
Definition: iot_gpio.h:76
int32_t iot_gpio_write_sync(IotGpioHandle_t const pxGpio, uint8_t ucPinState)
iot_gpio_write_sync is used to write data into the GPIO pin in blocking mode.
Definition: iot_gpio.h:110
IotGpioHandle_t iot_gpio_open(int32_t lGpioNumber)
iot_gpio_open is used to open the GPIO handle. The application must call this function to open desire...
Definition: iot_gpio.h:113
Definition: iot_gpio.h:58
Definition: iot_gpio.h:89
IotGpioIoctlRequest_t
Ioctl request types.
Definition: iot_gpio.h:96
Definition: iot_gpio.h:103
Definition: iot_gpio.h:88
Definition: iot_gpio.h:108
Definition: iot_gpio.h:77
Definition: iot_gpio.h:101
Definition: iot_gpio.h:85
int32_t iot_gpio_ioctl(IotGpioHandle_t const pxGpio, IotGpioIoctlRequest_t xRequest, void *const pvBuffer)
iot_gpio_ioctl is used to configure GPIO pin options. The application should call this function to co...
IotGpioDirection_t
enum for configuring GPIO input/output direction.
Definition: iot_gpio.h:55
Definition: iot_gpio.h:66
Definition: iot_gpio.h:57
IotGpioInterrupt_t
GPIO pin interrupt config types.
Definition: iot_gpio.h:83
Definition: iot_gpio.h:86
Definition: iot_gpio.h:105
Definition: iot_gpio.h:102
int32_t iot_gpio_close(IotGpioHandle_t const pxGpio)
iot_gpio_close is used to deinitializes the GPIO pin to default value and close the handle...
Definition: iot_gpio.h:100
Definition: iot_gpio.h:67
Definition: iot_gpio.h:90
Definition: iot_gpio.h:109
Definition: iot_gpio.h:112
Definition: iot_gpio.h:75
Definition: iot_gpio.h:87
IotGpioPull_t
GPIO pin internal pull state. Sets the default state for output pins.
Definition: iot_gpio.h:73
void iot_gpio_set_callback(IotGpioHandle_t const pxGpio, IotGpioCallback_t xGpioCallback, void *pvUserContext)
iot_gpio_set_callback is used to set the callback to be called when an interrupt is tirggered...
Definition: iot_gpio.h:107
Definition: iot_gpio.h:106
void(* IotGpioCallback_t)(uint8_t ucPinState, void *pvUserContext)
GPIO interrupt callback type. This callback is passed to the driver by using iot_gpio_set_callback AP...
Definition: iot_gpio.h:136
struct IotGpioDescriptor * IotGpioHandle_t
IotGpioHandle_t type is the GPIO handle returned by calling iot_gpio_open() this is initialized in op...
Definition: iot_gpio.h:126
Definition: iot_gpio.h:111