38#if defined(XWCDCFG_ds_PM) && (1 == XWCDCFG_ds_PM)
51#if defined(XWCDCFG_ds_PM) && (1 == XWCDCFG_ds_PM)
99 goto err_xfer_apimtx_init;
125 goto err_dev_vop_remove;
162#if defined(XWCDCFG_ds_PM) && (1 == XWCDCFG_ds_PM)
219 if ((drv) && (drv->
xfer)) {
220 rc = drv->
xfer(spim, cfgid, txd, rxb, size, to);
253 if ((drv) && (drv->
abort)) {
254 rc = drv->
abort(spim, to);
static xwer_t xwds_device_grab(struct xwds_device *dev)
XWDS API:增加对象的引用计数
xwer_t xwds_device_vop_start(struct xwds_device *dev)
设备基本操作函数:启动设备
void xwds_device_construct(struct xwds_device *dev)
XWDS API:设备的构造函数
void xwds_device_destruct(struct xwds_device *dev)
XWDS API:设备的析构函数
static xwer_t xwds_device_put(struct xwds_device *dev)
XWDS API:减少对象的引用计数
xwer_t xwds_device_vop_stop(struct xwds_device *dev)
设备基本操作函数:停止设备
xwer_t xwds_device_vop_remove(struct xwds_device *dev)
设备基本操作函数:删除设备
xwer_t xwds_device_vop_resume(struct xwds_device *dev)
设备基本操作函数:继续设备
xwer_t xwds_device_vop_probe(struct xwds_device *dev)
设备基本操作函数:探测设备
xwer_t xwds_device_vop_suspend(struct xwds_device *dev)
设备基本操作函数:暂停设备
xwer_t xwds_spim_put(struct xwds_spim *spim)
XWDS API:减少对象的引用计数
void xwds_spim_construct(struct xwds_spim *spim)
XWDS API:SPI主机模式控制器对象的构造函数
xwer_t xwds_spim_grab(struct xwds_spim *spim)
XWDS API:增加对象的引用计数
void xwds_spim_destruct(struct xwds_spim *spim)
XWDS API:SPI主机模式控制器对象的析构函数
xwer_t xwds_spim_abort(struct xwds_spim *spim, xwtm_t to)
XWDS API:中止SPI总线传输
xwer_t xwds_spim_xfer(struct xwds_spim *spim, xwid_t cfgid, const xwu8_t txd[], xwu8_t *rxb, xwsz_t *size, xwtm_t to)
XWDS API:启动SPI总线传输
#define xwds_cast(type, dev)
#define XWDS_VALIDATE(exp, errstr,...)
#define ECHRNG
Channel number out of range
#define EINVAL
Invalid argument
#define EFAULT
Bad address
#define ENOSYS
Function not implemented
xws64_t xwtm_t
XWOS系统时间 (有符号)
static xwer_t xwos_mtx_init(struct xwos_mtx *mtx, xwpr_t sprio)
XWOS API:静态方式初始化互斥锁
static xwer_t xwos_mtx_lock_to(struct xwos_mtx *mtx, xwtm_t to)
XWOS API:限时等待上锁互斥锁
static xwer_t xwos_mtx_fini(struct xwos_mtx *mtx)
XWOS API:销毁静态方式初始化的互斥锁
static xwer_t xwos_mtx_unlock(struct xwos_mtx *mtx)
XWOS API:解锁互斥锁
#define XWOS_SKD_PRIORITY_RT_MIN
XWOS API:最小实时优先级
static xwer_t xwds_spim_vop_start(struct xwds_spim *spim)
XWDS VOP:启动设备
static xwer_t xwds_spim_vop_resume(struct xwds_spim *spim)
XWDS VOP:继续设备
static xwer_t xwds_spim_vop_suspend(struct xwds_spim *spim)
XWDS VOP:暂停设备
static xwer_t xwds_spim_vop_probe(struct xwds_spim *spim)
XWDS VOP:探测设备
static xwer_t xwds_spim_vop_stop(struct xwds_spim *spim)
XWDS VOP:停止设备
static xwer_t xwds_spim_vop_remove(struct xwds_spim *spim)
XWDS VOP:删除设备
const struct xwds_virtual_operation xwds_spim_vop
const struct xwds_driver * drv
const struct xwds_virtual_operation * vop
xwer_t(* abort)(struct xwds_spim *, xwtm_t)
xwer_t(* xfer)(struct xwds_spim *, xwid_t, const xwu8_t[], xwu8_t *, xwsz_t *, xwtm_t)
struct xwds_spim::@25 xfer
xwer_t(* stop)(struct xwds_device *)
xwer_t(* remove)(struct xwds_device *)
xwer_t(* probe)(struct xwds_device *)
xwer_t(* resume)(struct xwds_device *)