1.2.6.5 SYS_DMA_AddressingModeSetup Function

C

void SYS_DMA_AddressingModeSetup(SYS_DMA_CHANNEL channel, SYS_DMA_SOURCE_ADDRESSING_MODE sourceAddrMode, SYS_DMA_DESTINATION_ADDRESSING_MODE destAddrMode);

Summary

Setup addressing mode of selected DMA channel.

Description

This function sets the addressing mode 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

ParamDescription
channelA specific DMA channel
sourceAddrModeSource addressing mode of type SYS_DMA_SOURCE_ADDRESSING_MODE
destAddrModeDestination addressing mode of type SYS_DMA_DESTINATION_ADDRESSING_MODE

Returns

None.

Example

SYS_DMA_AddressingModeSetup(SYS_DMA_CHANNEL_1, SYS_DMA_SOURCE_ADDRESSING_MODE_FIXED, SYS_DMA_DESTINATION_ADDRESSING_MODE_FIXED);

Remarks

None.