## CMSIS DMA Driver Function Documentation

### DMA_GetVersion

ARM_DRIVER_VERSION DMA_GetVersion()

Get driver version.

Location: Driver_DMA.c:21

Return

ARM_DRIVER_VERSION

### DMA_Initialize

int32_t DMA_Initialize()

Initialize DMA driver with default configuration.

Location: Driver_DMA.c:22

Return

execution_status

### DMA_Configure

int32_t DMA_Configure(DMA_SEL_t sel, const DMA_CFG_t * cfg, DMA_SignalEvent_t cb)

Configure particular DMA channel.

Location: Driver_DMA.c:23

Parameters

Direction | Name | Description
--- | --- | ---
in | sel | DMA channel to be configured (DMA_SEL_t)
in | cfg | Pointer to DMA_CFG_t
in | cb | Pointer to DMA_SignalEvent_t

Return

execution_status

### DMA_ConfigureWord

int32_t DMA_ConfigureWord(DMA_SEL_t sel, uint32_t cfg, DMA_SignalEvent_t cb)

Configure particular DMA channel.

Location: Driver_DMA.c:24

Parameters

Direction | Name | Description
--- | --- | ---
in | sel | DMA channel to be configured (DMA_SEL_t)
in | cfg | Configuration word
in | cb | Pointer to DMA_SignalEvent_t

Return

execution_status

### DMA_ConfigureAddr

int32_t DMA_ConfigureAddr(DMA_SEL_t sel, const DMA_ADDR_CFG_t * cfg)

Configure DMA channel source and destination addresses.

Location: Driver_DMA.c:25

Parameters

Direction | Name | Description
--- | --- | ---
in | sel | DMA to be configured (DMA_SEL_t)
in | cfg | Pointer to DMA_ADDR_CFG_t

Return

execution_status

### DMA_SetInterruptPriority

int32_t DMA_SetInterruptPriority(DMA_SEL_t sel, const DMA_PRI_CFG_t * cfg)

Configure the DMA interrupt priority.

Location: Driver_DMA.c:26

Parameters

Direction | Name | Description
--- | --- | ---
in | sel | DMA channel to be configured (DMA_SEL_t)
in | cfg | Pointer to DMA_PRI_CFG_t

Return

execution_status

### DMA_CreateConfigWord

uint32_t DMA_CreateConfigWord(const DMA_CFG_t * cfg)

Create DMA channel configuration word.

Location: Driver_DMA.c:27

Parameters

Direction | Name | Description
--- | --- | ---
in | cfg | Pointer to DMA_CFG_t

Return

configuration word

### DMA_SetConfigWord

int32_t DMA_SetConfigWord(DMA_SEL_t sel, uint32_t cfg)

Quickly updates the DMA channel configuration.

Location: Driver_DMA.c:28

Parameters

Direction | Name | Description
--- | --- | ---
in | sel | DMA channel to be configured (DMA_SEL_t)
in | cfg | configuration word

Return

none

### DMA_Stop

int32_t DMA_Stop(DMA_SEL_t sel)

Stops the DMA transfer.

Location: Driver_DMA.c:30

Parameters

Direction | Name | Description
--- | --- | ---
in | sel | DMA channel number to be used(DMA_SEL_t)

Return

execution_status

### DMA_GetCounterValue

uint32_t DMA_GetCounterValue(DMA_SEL_t sel)

Returns the current counter value of DMA channel.

Location: Driver_DMA.c:31

Parameters

Direction | Name | Description
--- | --- | ---
in | sel | DMA channel value to be read (DMA_SEL_t)

Return

DMA channel counter value

### DMA_GetStatus

DMA_STATUS_t DMA_GetStatus(DMA_SEL_t sel)

Returns the DMA channel status.

Clears the status register on read.

Location: Driver_DMA.c:32

Parameters

Direction | Name | Description
--- | --- | ---
in | sel | DMA channel value to be read (DMA_SEL_t)

Return

DMA channel status (DMA_STATUS_t)

### DMA_SignalEvent

void DMA_SignalEvent(uint32_t event)

Signal DMA events.

Location: Driver_DMA.c:34

Parameters

Direction | Name | Description
--- | --- | ---
in | event | Notification mask (_ADC_EVENT_SRC_t)

Return

None