Jump to main content

##

# 2.32.7 DMAC_ChannelDisable Function

## C

    void DMAC_ChannelDisable(DMAC_CHANNEL channel)

## Summary

This function disables the DMA channel.

## Description

The function disables the specified DMAC channel. Once disabled, the channel will ignore triggers and will not transfer data till the next time a DMAC_ChannelTransfer function is called. If there is a transfer already in progress, this will aborted. If there were multiple linked transfers assigned on the channel, the on-going transfer will be aborted and the other descriptors will be discarded.

## Precondition

DMAC should have been initialized by calling DMAC_Initialize.

## Parameters

Param | Description
--- | ---
DMAC_CHANNEL channel | the particular channel to be disabled

## Returns

None.

## Example

    DMAC_ChannelDisable (DMAC_CHANNEL_0);