1.42.23.11 XDMACn_ChannelSuspend Function
C
// n is instance of the peripheral and it is applicable only for devices having multiple instances of the peripheral.
void XDMACn_ChannelSuspend(XDMAC_CHANNEL channel)
Summary
This function Suspends the DMA channel
Description
The function Suspends the specified XDMAC channel. After the ongoing burst transfer is completed, the channel operation is suspended and the suspend command is automatically cleared.
Precondition
XDMAC should have been initialized by calling XDMACn_Initialize and channel should be enabled.
Parameters
Param | Description |
---|---|
XDMAC_CHANNEL channel | the particular channel to be Suspended |
Returns
None.
Example
XDMAC_ChannelSuspend (XDMAC_CHANNEL_0);
Remarks
Only enabled DMA channels can be suspended. If a channel is disabled when it is attempted to be suspended, the internal suspend command will be ignored.