Jump to main content

##

# 2.31.8 DMA_ChannelInterruptEnable Function

## C

    void DMA_ChannelInterruptEnable ( DMA_CHANNEL channel, DMA_INT intSources )

## Summary

This API is used to enable DMA channel interrupt

## Description

This API is used to enable DMA channel interrupt

## Precondition

DMA should have been initialized by calling DMA_Initialize.

## Parameters

Param | Description
--- | ---
channel | DMA channel
intSources | Interrupt source to enable. Bit-wise OR of following macros: DMA_INT_START_DETECTED, DMA_INT_TRANSFER_ABORT, DMA_INT_CELL_TRANSFER_COMPLETE, DMA_INT_BLOCK_TRANSFER_COMPLETE, DMA_INT_BLOCK_HALF_TRANSFER_COMPLETE, DMA_INT_LINKED_LIST_DONE, DMA_INT_WRITE_ERROR, DMA_INT_READ_ERROR

## Returns

None.

## Example

    DMA_ChannelInterruptEnable (DMA_CHANNEL_0, (DMA_INT_BLOCK_TRANSFER_COMPLETE | DMA_INT_WRITE_ERROR));

## Remarks

None.