XFusion API v1.3.0
载入中...
搜索中...
未找到
_xf_hal_gpio_config_t结构体 参考

gpio 配置结构体。用于对接 gpio 设置的参数。 更多...

#include <xf_hal_gpio.h>

_xf_hal_gpio_config_t 的协作图:
Collaboration graph

成员变量

uint32_t direction: 2
 
uint32_t pull: 2
 
uint32_t speed: 25
 
uint32_t intr_enable: 1
 
uint32_t intr_type: 2
 
xf_hal_gpio_callback_t cb
 
xf_hal_gpio_callback_t isr
 

详细描述

gpio 配置结构体。用于对接 gpio 设置的参数。

注解
普通用户可忽略,移植者需注意。

在文件 xf_hal_gpio.h131 行定义.

结构体成员变量说明

◆ direction

uint32_t direction

gpio 方向参数,见 xf_hal_gpio_dir_t

在文件 xf_hal_gpio.h132 行定义.

◆ pull

uint32_t pull

gpio 上下拉参数,见 xf_hal_gpio_pull_t

在文件 xf_hal_gpio.h133 行定义.

◆ speed

uint32_t speed

gpio 速度参数,单位 Hz

在文件 xf_hal_gpio.h134 行定义.

◆ intr_enable

uint32_t intr_enable

gpio 中断启用参数,0 为禁用,1 为启用

在文件 xf_hal_gpio.h135 行定义.

◆ intr_type

uint32_t intr_type

gpio 中断类型参数,见 xf_hal_gpio_intr_type_t

在文件 xf_hal_gpio.h136 行定义.

◆ cb

gpio 中断回调参数,该回调函数运行于异步任务

在文件 xf_hal_gpio.h137 行定义.

◆ isr

gpio 中断服务参数,该服务函数运行于中断服务

在文件 xf_hal_gpio.h138 行定义.


该结构体的文档由以下文件生成: