|
XFusion API v1.3.0
|
xf_hal 的 gpio(通用输入输出) 设备抽象。 更多...
#include "xf_hal_device_config.h"
结构体 | |
| struct | _xf_hal_gpio_irq_t |
| 中断回调结构体。 更多... | |
| struct | _xf_hal_gpio_config_t |
| gpio 配置结构体。用于对接 gpio 设置的参数。 更多... | |
宏定义 | |
| #define | XF_HAL_GPIO_NUM_NONE ((xf_gpio_num_t)-1) |
| 无效 gpio 序号定义。 | |
类型定义 | |
| typedef uint32_t | xf_gpio_num_t |
| gpio 序号。 | |
| typedef void(* | xf_hal_gpio_irq_cb_t) (xf_gpio_num_t gpio_num, bool level, void *user_data) |
| gpio 中断回调函数原型。 | |
| typedef enum _xf_hal_gpio_intr_type_t | xf_hal_gpio_intr_type_t |
| gpio 的中断类型。 | |
| typedef enum _xf_hal_gpio_dir_t | xf_hal_gpio_dir_t |
| gpio 的方向。 | |
| typedef enum _xf_hal_gpio_pull_t | xf_hal_gpio_pull_t |
| gpio 的上下拉。 | |
| typedef struct _xf_hal_gpio_irq_t | xf_hal_gpio_callback_t |
| 中断回调结构体。 | |
| typedef enum _xf_hal_gpio_cmd_t | xf_hal_gpio_cmd_t |
| gpio 命令枚举。用于对接 gpio 设置的命令。 | |
| typedef struct _xf_hal_gpio_config_t | xf_hal_gpio_config_t |
| gpio 配置结构体。用于对接 gpio 设置的参数。 | |
xf_hal 的 gpio(通用输入输出) 设备抽象。
在文件 xf_hal_gpio.h 中定义.