XWOS API  4.0
XWOS C/C++ API参考手册
载入中...
搜索中...
未找到
driver.h
浏览该文件的文档.
1
23#ifndef __xwcd_peripheral_i2c_iochip_tca9539_driver_h__
24#define __xwcd_peripheral_i2c_iochip_tca9539_driver_h__
25
26#include <xwos/standard.h>
27#include <xwcd/ds/soc/eirq.h>
30
40
45#if defined(XWCDCFG_ds_PM) && (1 == XWCDCFG_ds_PM)
50
55#endif
56
77 xwid_t port, xwsq_t pinmask,
78 xwtm_t to);
79
100 xwid_t port, xwsq_t pinmask,
101 xwtm_t to);
102
124 xwid_t port, xwsq_t pinmsk, void * cfg,
125 xwtm_t to);
126
148 xwid_t port, xwsq_t pinmsk,
149 xwtm_t to);
150
172 xwid_t port, xwsq_t pinmsk,
173 xwtm_t to);
174
196 xwid_t port, xwsq_t pinmsk,
197 xwtm_t to);
198
221 xwid_t port, xwsq_t pinmsk, xwsq_t out,
222 xwtm_t to);
223
246 xwid_t port, xwsq_t pinmsk, xwsq_t * in,
247 xwtm_t to);
248
252extern const struct xwds_iochip_driver xwds_tca9539_drv;
253
254/******** ******** TCA9539 APIs ******** ********/
262void xwds_tca9539_reset(struct xwds_tca9539 * tca9539, bool active);
263
278xwer_t xwds_tca9539_run(struct xwds_tca9539 * tca9539, xwds_eirq_f eisr, xwtm_t to);
279
287void xwds_tca9539_quit(struct xwds_tca9539 * tca9539);
288
301void xwds_tca9539_dump(struct xwds_tca9539 * tca9539, xwtm_t to);
302
307#endif /* xwcd/peripheral/i2c/iochip/tca9539/driver.h */
玄武设备栈:SOC:外部中断
void(* xwds_eirq_f)(struct xwds_soc *, xwid_t, xwds_eirq_arg_t)
外部中断函数
Definition chip.h:143
xwer_t xwds_tca9539_drv_start(struct xwds_device *dev)
TCA9539基本驱动:启动设备
Definition driver.c:83
xws64_t xwtm_t
XWOS系统时间 (有符号)
Definition type.h:742
signed long xwer_t
Definition type.h:554
unsigned long xwid_t
Definition type.h:481
unsigned long xwsq_t
Definition type.h:445
xwer_t xwds_tca9539_drv_gpio_input(struct xwds_iochip *iochip, xwid_t port, xwsq_t pinmsk, xwsq_t *in, xwtm_t to)
TCA9539 GPIO驱动:并行读取多个IO扩展芯片的GPIO
Definition driver.c:405
xwer_t xwds_tca9539_drv_gpio_req(struct xwds_iochip *iochip, xwid_t port, xwsq_t pinmask, xwtm_t to)
TCA9539 GPIO驱动:申请IO扩展芯片的GPIO
Definition driver.c:150
xwer_t xwds_tca9539_drv_gpio_reset(struct xwds_iochip *iochip, xwid_t port, xwsq_t pinmsk, xwtm_t to)
TCA9539 GPIO驱动:将IO扩展芯片的GPIO设置为低电平
Definition driver.c:269
void xwds_tca9539_dump(struct xwds_tca9539 *tca9539, xwtm_t to)
TCA9539 API:输出TCA9539的寄存器信息
Definition driver.c:537
xwer_t xwds_tca9539_drv_stop(struct xwds_device *dev)
TCA9539基本驱动:停止设备
Definition driver.c:117
xwer_t xwds_tca9539_drv_suspend(struct xwds_device *dev)
TCA9539基本驱动:暂停设备
Definition driver.c:136
void xwds_tca9539_reset(struct xwds_tca9539 *tca9539, bool active)
TCA9539 API:复位TCA9539
Definition driver.c:461
xwer_t xwds_tca9539_drv_gpio_output(struct xwds_iochip *iochip, xwid_t port, xwsq_t pinmsk, xwsq_t out, xwtm_t to)
TCA9539 GPIO驱动:并行输出多个IO扩展芯片的GPIO
Definition driver.c:359
xwer_t xwds_tca9539_drv_gpio_cfg(struct xwds_iochip *iochip, xwid_t port, xwsq_t pinmsk, void *cfg, xwtm_t to)
TCA9539 GPIO驱动:配置IO扩展芯片的GPIO
Definition driver.c:174
xwer_t xwds_tca9539_drv_resume(struct xwds_device *dev)
TCA9539基本驱动:继续设备
Definition driver.c:142
xwer_t xwds_tca9539_run(struct xwds_tca9539 *tca9539, xwds_eirq_f eisr, xwtm_t to)
TCA9539 API:启动TCA9539
Definition driver.c:476
xwer_t xwds_tca9539_drv_gpio_toggle(struct xwds_iochip *iochip, xwid_t port, xwsq_t pinmsk, xwtm_t to)
TCA9539 GPIO驱动:翻转IO扩展芯片的GPIO电平
Definition driver.c:313
void xwds_tca9539_quit(struct xwds_tca9539 *tca9539)
TCA9539 API:停止运行TCA9539
Definition driver.c:525
const struct xwds_iochip_driver xwds_tca9539_drv
TCA9539的驱动
Definition driver.c:437
xwer_t xwds_tca9539_drv_gpio_set(struct xwds_iochip *iochip, xwid_t port, xwsq_t pinmsk, xwtm_t to)
TCA9539 GPIO驱动:将IO扩展芯片的GPIO设置为高电平
Definition driver.c:223
xwer_t xwds_tca9539_drv_gpio_rls(struct xwds_iochip *iochip, xwid_t port, xwsq_t pinmask, xwtm_t to)
TCA9539 GPIO驱动:释放IO扩展芯片的GPIO
Definition driver.c:162
玄武设备栈:I2C:外设
玄武设备栈:I2C IO扩展芯片:TCA9539
设备(所有设备的基类)
Definition device.h:127
BSP中需要提供的IO扩展芯片设备驱动函数表
Definition chip.h:52
IO扩展芯片
Definition chip.h:95
TCA9539对象
Definition device.h:127
XWOS的标准头文件