mikroSDK Reference Manual
dma_t Struct Reference

DMA Handle prototype. More...

Data Fields

handle_t handle
 
dma_config_t config
 
uint8_t module
 
uint8_t stream
 
uint8_t channel
 
dma_state_t allocated
 
bool initialized
 

Detailed Description

DMA driver context structure, used by every other function later on.

Example

// DMA driver context structure.
static dma_t dma;
// DMA driver configuration structure.
static dma_config_t dma_cfg;
// Fill structure with default values.
// Allocate memory for object.
dma_open( &dma, &dma_cfg );

Field Documentation

◆ handle

handle_t dma_t::handle

DMA handle.

◆ config

dma_config_t dma_t::config

DMA configuration structure.

◆ module

uint8_t dma_t::module

Specifies the module.

◆ stream

uint8_t dma_t::stream

Specifies the stream.

◆ channel

uint8_t dma_t::channel

Specifies the channel used for the specified stream.

◆ allocated

dma_state_t dma_t::allocated

Is the object allocated or not?

◆ initialized

bool dma_t::initialized

Is the object initialized or not?

dma_config_t
DMA Configuration Structure prototype.
Definition: drv_dma.h:175
dma_configure_default
void dma_configure_default(dma_config_t *config)
Configure DMA Driver configuration structure.
dma_open
err_t dma_open(dma_t *obj, dma_config_t *config)
Open the DMA Driver object.
dma_t
DMA Handle prototype.
Definition: drv_dma.h:228