RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
载入中...
搜索中...
未找到
rt_dma_controller_ops结构体 参考

#include <dma.h>

成员变量

struct rt_dma_chan *(* request_chan )(struct rt_dma_controller *ctrl, struct rt_device *slave, void *fw_data)
 
rt_err_t(* release_chan )(struct rt_dma_chan *chan)
 
rt_err_t(* start )(struct rt_dma_chan *chan)
 
rt_err_t(* stop )(struct rt_dma_chan *chan)
 
rt_err_t(* config )(struct rt_dma_chan *chan, struct rt_dma_slave_config *conf)
 
rt_err_t(* prep_memcpy )(struct rt_dma_chan *chan, rt_ubase_t dma_addr_src, rt_ubase_t dma_addr_dst, rt_size_t len)
 
rt_err_t(* prep_cyclic )(struct rt_dma_chan *chan, rt_ubase_t dma_buf_addr, rt_size_t buf_len, rt_size_t period_len, enum rt_dma_transfer_direction dir)
 
rt_err_t(* prep_single )(struct rt_dma_chan *chan, rt_ubase_t dma_buf_addr, rt_size_t buf_len, enum rt_dma_transfer_direction dir)
 

详细描述

在文件 dma.h91 行定义.

结构体成员变量说明

◆ request_chan

struct rt_dma_chan *(* rt_dma_controller_ops::request_chan) (struct rt_dma_controller *ctrl, struct rt_device *slave, void *fw_data)

在文件 dma.h88 行定义.

◆ release_chan

rt_err_t(* rt_dma_controller_ops::release_chan) (struct rt_dma_chan *chan)

在文件 dma.h95 行定义.

◆ start

rt_err_t(* rt_dma_controller_ops::start) (struct rt_dma_chan *chan)

在文件 dma.h97 行定义.

◆ stop

rt_err_t(* rt_dma_controller_ops::stop) (struct rt_dma_chan *chan)

在文件 dma.h98 行定义.

◆ config

rt_err_t(* rt_dma_controller_ops::config) (struct rt_dma_chan *chan, struct rt_dma_slave_config *conf)

在文件 dma.h99 行定义.

◆ prep_memcpy

rt_err_t(* rt_dma_controller_ops::prep_memcpy) (struct rt_dma_chan *chan, rt_ubase_t dma_addr_src, rt_ubase_t dma_addr_dst, rt_size_t len)

在文件 dma.h101 行定义.

◆ prep_cyclic

rt_err_t(* rt_dma_controller_ops::prep_cyclic) (struct rt_dma_chan *chan, rt_ubase_t dma_buf_addr, rt_size_t buf_len, rt_size_t period_len, enum rt_dma_transfer_direction dir)

在文件 dma.h104 行定义.

◆ prep_single

rt_err_t(* rt_dma_controller_ops::prep_single) (struct rt_dma_chan *chan, rt_ubase_t dma_buf_addr, rt_size_t buf_len, enum rt_dma_transfer_direction dir)

在文件 dma.h108 行定义.