PebbleOS v4.47.0-1362-gd278268fe
Loading...
Searching...
No Matches
driver.h File Reference
#include <stddef.h>
#include <stdint.h>
#include <pbl/device.h>
#include <pbl/drivers/dma.h>

Data Structures

struct  pbl_dma_controller_ops
 DMA controller driver operations. More...
 
struct  pbl_dma_chan_state
 Runtime state of a channel. More...
 
struct  pbl_dma_controller
 A DMA controller. More...
 

Macros

#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, _parent, _ops)
 Initializer for the struct pbl_dma_controller of controller sym.
 

Functions

void pbl_dma_complete (const struct pbl_dma_controller *ctrl, uint8_t channel, int status)
 Report the end of a channel's transfer, or of a period of a cyclic one, calling its callback.