XWOS API  4.0
XWOS C/C++ API参考手册
载入中...
搜索中...
未找到
dma.h
浏览该文件的文档.
1
21#ifndef __xwcd_ds_soc_dma_h__
22#define __xwcd_ds_soc_dma_h__
23
24#include <xwcd/ds/standard.h>
25#include <xwos/lib/xwbop.h>
26#include <xwcd/ds/soc/chip.h>
27
36#define XWDS_DMA_CH(x) ((xwid_t)(x))
37
50xwer_t xwds_dma_req(struct xwds_soc * soc, xwid_t ch);
51
64xwer_t xwds_dma_rls(struct xwds_soc * soc, xwid_t ch);
65
81xwer_t xwds_dma_cfg(struct xwds_soc * soc, xwid_t ch, void * cfg,
83
96xwer_t xwds_dma_enable(struct xwds_soc * soc, xwid_t ch);
97
110xwer_t xwds_dma_disable(struct xwds_soc * soc, xwid_t ch);
111
124xwer_t xwds_dma_start(struct xwds_soc * soc, xwid_t ch);
125
138xwer_t xwds_dma_stop(struct xwds_soc * soc, xwid_t ch);
139
144#endif /* xwcd/ds/soc/dma.h */
xwer_t xwds_dma_disable(struct xwds_soc *soc, xwid_t ch)
XWDS API:关闭DMA的通道
Definition dma.c:165
xwer_t xwds_dma_start(struct xwds_soc *soc, xwid_t ch)
XWDS API:启动DMA的通道
Definition dma.c:192
xwer_t xwds_dma_req(struct xwds_soc *soc, xwid_t ch)
XWDS API:申请DMA的通道
Definition dma.c:27
void * xwds_dma_cbarg_t
DMA完成回调函数参数
Definition chip.h:148
xwer_t xwds_dma_cfg(struct xwds_soc *soc, xwid_t ch, void *cfg, xwds_dma_f cb, xwds_dma_cbarg_t arg)
XWDS API:配置DMA的通道
Definition dma.c:91
xwer_t xwds_dma_rls(struct xwds_soc *soc, xwid_t ch)
XWDS API:释放DMA的通道
Definition dma.c:62
xwer_t xwds_dma_enable(struct xwds_soc *soc, xwid_t ch)
XWDS API:打开DMA的通道
Definition dma.c:138
void(* xwds_dma_f)(struct xwds_soc *, xwid_t, xwu32_t, xwds_dma_cbarg_t)
DMA完成回调函数类型
Definition chip.h:153
xwer_t xwds_dma_stop(struct xwds_soc *soc, xwid_t ch)
XWDS API:停止DMA的通道
Definition dma.c:219
signed long xwer_t
Definition type.h:554
unsigned long xwid_t
Definition type.h:481
玄武设备栈:SOC
SOC设备
Definition chip.h:161
XWOS通用库:位操作
玄武设备栈:顶级头文件