XWOS API  4.0
XWOS C/C++ API参考手册
载入中...
搜索中...
未找到
xwds_iochip_driver结构体 参考

BSP中需要提供的IO扩展芯片设备驱动函数表 更多...

#include <chip.h>

xwds_iochip_driver 的协作图:

成员变量

struct xwds_driver base
 
xwer_t(* gpio_req )(struct xwds_iochip *, xwid_t, xwsq_t, xwtm_t)
 
xwer_t(* gpio_rls )(struct xwds_iochip *, xwid_t, xwid_t, xwtm_t)
 
xwer_t(* gpio_cfg )(struct xwds_iochip *, xwid_t, xwsq_t, void *, xwtm_t)
 
xwer_t(* gpio_output )(struct xwds_iochip *, xwid_t, xwsq_t, xwsq_t, xwtm_t)
 
xwer_t(* gpio_set )(struct xwds_iochip *, xwid_t, xwsq_t, xwtm_t)
 
xwer_t(* gpio_reset )(struct xwds_iochip *, xwid_t, xwsq_t, xwtm_t)
 
xwer_t(* gpio_toggle )(struct xwds_iochip *, xwid_t, xwsq_t, xwtm_t)
 
xwer_t(* gpio_input )(struct xwds_iochip *, xwid_t, xwsq_t, xwsq_t *, xwtm_t)
 

详细描述

BSP中需要提供的IO扩展芯片设备驱动函数表

在文件 chip.h52 行定义.

结构体成员变量说明

◆ base

struct xwds_driver xwds_iochip_driver::base

C语言面向对象:继承struct xwds_driver

在文件 chip.h53 行定义.

◆ gpio_cfg

xwer_t(* xwds_iochip_driver::gpio_cfg) (struct xwds_iochip *, xwid_t, xwsq_t, void *, xwtm_t)

配置GPIO

在文件 chip.h63 行定义.

◆ gpio_input

xwer_t(* xwds_iochip_driver::gpio_input) (struct xwds_iochip *, xwid_t, xwsq_t, xwsq_t *, xwtm_t)

读取GPIO上的输入

在文件 chip.h85 行定义.

◆ gpio_output

xwer_t(* xwds_iochip_driver::gpio_output) (struct xwds_iochip *, xwid_t, xwsq_t, xwsq_t, xwtm_t)

输出GPIO

在文件 chip.h68 行定义.

◆ gpio_req

xwer_t(* xwds_iochip_driver::gpio_req) (struct xwds_iochip *, xwid_t, xwsq_t, xwtm_t)

申请GPIO

在文件 chip.h55 行定义.

◆ gpio_reset

xwer_t(* xwds_iochip_driver::gpio_reset) (struct xwds_iochip *, xwid_t, xwsq_t, xwtm_t)

将GPIO置为低电平

在文件 chip.h77 行定义.

◆ gpio_rls

xwer_t(* xwds_iochip_driver::gpio_rls) (struct xwds_iochip *, xwid_t, xwid_t, xwtm_t)

释放GPIO

在文件 chip.h59 行定义.

◆ gpio_set

xwer_t(* xwds_iochip_driver::gpio_set) (struct xwds_iochip *, xwid_t, xwsq_t, xwtm_t)

将GPIO置为高电平

在文件 chip.h73 行定义.

◆ gpio_toggle

xwer_t(* xwds_iochip_driver::gpio_toggle) (struct xwds_iochip *, xwid_t, xwsq_t, xwtm_t)

反转GPIO电平

在文件 chip.h81 行定义.


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