Jump to main content

##

# 1.2.6.6 SYS_DMA_DataWidthSetup Function

## C

    void SYS_DMA_DataWidthSetup(SYS_DMA_CHANNEL channel, SYS_DMA_WIDTH dataWidth);

## Summary

Setup data width of selected DMA channel.

## Description

This function sets data width of selected DMA channel.

Any ongoing transaction of the specified DMA channel will be aborted when this function is called.

## Precondition

DMA Controller should have been initialized.

## Parameters

Param | Description
--- | ---
channel | A specific DMA channel
dataWidth | Data width of DMA transfer of type SYS_DMA_WIDTH

## Returns

None.

## Example

    SYS_DMA_DataWidthSetup(SYS_DMA_CHANNEL_1, SYS_DMA_WIDTH_16_BIT);

## Remarks

None.