PebbleOS v4.43.0-67-g6ab408441
Loading...
Searching...
No Matches
pbl_dma_controller_ops Struct Reference

DMA controller driver operations. More...

#include <dma.h>

Data Fields

int(* slave_config )(const struct pbl_dma_controller *ctrl, const struct pbl_dma_chan *chan, const struct pbl_dma_slave_config *cfg)
 Set the peripheral side of a stopped channel up.
 
int(* prep_slave_single )(const struct pbl_dma_controller *ctrl, uint8_t channel, void *buf, size_t len, enum pbl_dma_dir dir)
 Start a transfer on a configured channel.
 
int(* terminate )(const struct pbl_dma_controller *ctrl, uint8_t channel)
 Stop a channel.
 
int(* tx_status )(const struct pbl_dma_controller *ctrl, uint8_t channel, size_t *residue)
 Read the bytes left of a channel's transfer.
 

Detailed Description

DMA controller driver operations.

Field Documentation

◆ prep_slave_single

int(* pbl_dma_controller_ops::prep_slave_single) (const struct pbl_dma_controller *ctrl, uint8_t channel, void *buf, size_t len, enum pbl_dma_dir dir)

Start a transfer on a configured channel.

Returns 0 or a negative errno.

◆ slave_config

int(* pbl_dma_controller_ops::slave_config) (const struct pbl_dma_controller *ctrl, const struct pbl_dma_chan *chan, const struct pbl_dma_slave_config *cfg)

Set the peripheral side of a stopped channel up.

Returns 0 or a negative errno.

◆ terminate

int(* pbl_dma_controller_ops::terminate) (const struct pbl_dma_controller *ctrl, uint8_t channel)

Stop a channel.

Returns 0 or a negative errno.

◆ tx_status

int(* pbl_dma_controller_ops::tx_status) (const struct pbl_dma_controller *ctrl, uint8_t channel, size_t *residue)

Read the bytes left of a channel's transfer.

Returns 0 or a negative errno.


The documentation for this struct was generated from the following file: