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

BSP中需要提供的SOC设备驱动函数表 更多...

#include <chip.h>

xwds_soc_driver 的协作图:

成员变量

struct xwds_driver base
 
xwer_t(* get_reset_reason )(struct xwds_soc *, xwu64_t *)
 
xwer_t(* gpio_req )(struct xwds_soc *, xwid_t, xwsq_t)
 
xwer_t(* gpio_rls )(struct xwds_soc *, xwid_t, xwid_t)
 
xwer_t(* gpio_cfg )(struct xwds_soc *, xwid_t, xwsq_t, void *)
 
xwer_t(* gpio_output )(struct xwds_soc *, xwid_t, xwsq_t, xwsq_t)
 
xwer_t(* gpio_set )(struct xwds_soc *, xwid_t, xwsq_t)
 
xwer_t(* gpio_reset )(struct xwds_soc *, xwid_t, xwsq_t)
 
xwer_t(* gpio_toggle )(struct xwds_soc *, xwid_t, xwsq_t)
 
xwer_t(* gpio_input )(struct xwds_soc *, xwid_t, xwsq_t, xwsq_t *)
 
xwer_t(* eirq_req )(struct xwds_soc *, xwid_t, xwsq_t, xwid_t, xwsq_t)
 
xwer_t(* eirq_rls )(struct xwds_soc *, xwid_t, xwsq_t, xwid_t)
 

详细描述

BSP中需要提供的SOC设备驱动函数表

在文件 chip.h51 行定义.

结构体成员变量说明

◆ base

struct xwds_driver xwds_soc_driver::base

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

在文件 chip.h52 行定义.

◆ eirq_req

xwer_t(* xwds_soc_driver::eirq_req) (struct xwds_soc *, xwid_t, xwsq_t, xwid_t, xwsq_t)

申请外部中断

在文件 chip.h108 行定义.

◆ eirq_rls

xwer_t(* xwds_soc_driver::eirq_rls) (struct xwds_soc *, xwid_t, xwsq_t, xwid_t)

释放外部中断

在文件 chip.h111 行定义.

◆ get_reset_reason

xwer_t(* xwds_soc_driver::get_reset_reason) (struct xwds_soc *, xwu64_t *)

获取复位原因

在文件 chip.h53 行定义.

◆ gpio_cfg

xwer_t(* xwds_soc_driver::gpio_cfg) (struct xwds_soc *, xwid_t, xwsq_t, void *)

配置GPIO

在文件 chip.h84 行定义.

◆ gpio_input

xwer_t(* xwds_soc_driver::gpio_input) (struct xwds_soc *, xwid_t, xwsq_t, xwsq_t *)

读取GPIO上的输入

在文件 chip.h101 行定义.

◆ gpio_output

xwer_t(* xwds_soc_driver::gpio_output) (struct xwds_soc *, xwid_t, xwsq_t, xwsq_t)

输出GPIO

在文件 chip.h88 行定义.

◆ gpio_req

xwer_t(* xwds_soc_driver::gpio_req) (struct xwds_soc *, xwid_t, xwsq_t)

申请GPIO

在文件 chip.h78 行定义.

◆ gpio_reset

xwer_t(* xwds_soc_driver::gpio_reset) (struct xwds_soc *, xwid_t, xwsq_t)

将GPIO置为低电平

在文件 chip.h95 行定义.

◆ gpio_rls

xwer_t(* xwds_soc_driver::gpio_rls) (struct xwds_soc *, xwid_t, xwid_t)

释放GPIO

在文件 chip.h81 行定义.

◆ gpio_set

xwer_t(* xwds_soc_driver::gpio_set) (struct xwds_soc *, xwid_t, xwsq_t)

将GPIO置为高电平

在文件 chip.h92 行定义.

◆ gpio_toggle

xwer_t(* xwds_soc_driver::gpio_toggle) (struct xwds_soc *, xwid_t, xwsq_t)

反转GPIO电平

在文件 chip.h98 行定义.


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