wifiiot_gpio.h
Overview
Related Modules:
Wifiiot
Description:
Declares the GPIO interface functions.
These functions are used for GPIO initialization, input/output settings, and level settings.
Since:
1.0
Version:
1.0
Summary
Typedefs
Typedef Name
|
Description
|
GpioIsrCallbackFunc) (char arg)
|
typedef void(
Indicates the GPIO interrupt callback.
|
Enumerations
Enumeration Name
|
Description
|
WifiIotGpioIdx { WIFI_IOT_GPIO_IDX_0, WIFI_IOT_GPIO_IDX_1, WIFI_IOT_GPIO_IDX_2, WIFI_IOT_GPIO_IDX_3, WIFI_IOT_GPIO_IDX_4, WIFI_IOT_GPIO_IDX_5, WIFI_IOT_GPIO_IDX_6, WIFI_IOT_GPIO_IDX_7, WIFI_IOT_GPIO_IDX_8, WIFI_IOT_GPIO_IDX_9, WIFI_IOT_GPIO_IDX_10, WIFI_IOT_GPIO_IDX_11, WIFI_IOT_GPIO_IDX_12, WIFI_IOT_GPIO_IDX_13, WIFI_IOT_GPIO_IDX_14, WIFI_IOT_GPIO_IDX_MAX }
|
Enumerates GPIO pin IDs.
|
WifiIotGpioValue { WIFI_IOT_GPIO_VALUE0 = 0, WIFI_IOT_GPIO_VALUE1 }
|
Enumerates GPIO level values.
|
WifiIotGpioDir { WIFI_IOT_GPIO_DIR_IN = 0, WIFI_IOT_GPIO_DIR_OUT }
|
Enumerates GPIO directions.
|
WifiIotGpioIntType { WIFI_IOT_INT_TYPE_LEVEL = 0, WIFI_IOT_INT_TYPE_EDGE }
|
Enumerates GPIO interrupt trigger modes.
|
WifiIotGpioIntPolarity { WIFI_IOT_GPIO_EDGE_FALL_LEVEL_LOW = 0, WIFI_IOT_GPIO_EDGE_RISE_LEVEL_HIGH }
|
Enumerates I/O interrupt polarities.
|
Functions
Function Name
|
Description
|
GpioInit (void)
|
unsigned int
Initializes the GPIO device.
|
GpioDeinit (void)
|
unsigned int
Deinitializes the GPIO device.
|
GpioSetDir (WifiIotGpioIdx id, WifiIotGpioDir dir)
|
unsigned int
Sets the direction for a GPIO pin.
|
GpioGetDir (WifiIotGpioIdx id, WifiIotGpioDir dir)
|
unsigned int
Obtains the direction for a GPIO pin.
|
GpioSetOutputVal (WifiIotGpioIdx id, WifiIotGpioValue val)
|
unsigned int
Sets the output level value for a GPIO pin.
|
GpioGetOutputVal (WifiIotGpioIdx id, WifiIotGpioValue val)
|
unsigned int
Obtains the output level value of a GPIO pin.
|
GpioGetInputVal (WifiIotGpioIdx id, WifiIotGpioValue val)
|
unsigned int
Obtains the input level value of a GPIO pin.
|
GpioRegisterIsrFunc (WifiIotGpioIdx id, WifiIotGpioIntType intType, WifiIotGpioIntPolarity intPolarity, GpioIsrCallbackFunc func, char arg)
|
unsigned int
Enables the interrupt function for a GPIO pin.
|
GpioUnregisterIsrFunc (WifiIotGpioIdx id)
|
unsigned int
Disables the interrupt function for a GPIO pin.
|
GpioSetIsrMask (WifiIotGpioIdx id, unsigned char mask)
|
unsigned int
Masks the interrupt function for a GPIO pin.
|
GpioSetIsrMode (WifiIotGpioIdx id, WifiIotGpioIntType intType, WifiIotGpioIntPolarity intPolarity)
|
unsigned int
Sets the interrupt trigger mode of a GPIO pin.
|