|
| #define | PBL_DMA_CHAN(_ctrl, _channel, _request, _config) {.ctrl = (_ctrl), .channel = (_channel), .request = (_request), .config = (_config)} |
| | Initializer for a struct pbl_dma_chan.
|
| |
| #define | PBL_DMA_CONTROLLER_STATE_DEFINE(sym, _num_channels) |
| | Define the class state of DMA controller sym, for the driver's define macro.
|
| |
| #define | PBL_DMA_CONTROLLER_INIT(sym, _name, _init, _ops) |
| | Initializer for the struct pbl_dma_controller of controller sym.
|
| |
|
| int | pbl_dma_slave_config (const struct pbl_dma_chan *chan, const struct pbl_dma_slave_config *cfg) |
| | Set the peripheral side of a stopped channel up.
|
| |
| int | pbl_dma_prep_slave_single (const struct pbl_dma_chan *chan, void *buf, size_t len, enum pbl_dma_dir dir, pbl_dma_callback_t callback, void *arg) |
| | Start a transfer between a buffer and the peripheral.
|
| |
| int | pbl_dma_terminate (const struct pbl_dma_chan *chan) |
| | Stop a channel.
|
| |
| int | pbl_dma_tx_status (const struct pbl_dma_chan *chan, size_t *residue) |
| | Read the bytes left of a channel's transfer.
|
| |
| void | pbl_dma_complete (const struct pbl_dma_controller *ctrl, uint8_t channel, int status) |
| | Report the end of a channel's transfer, calling its callback.
|
| |