Texas Instruments TMS320C6000 Reference Manual page 65

Chip support library api
Hide thumbs Also See for TMS320C6000:
Table of Contents

Advertisement

Description
This function opens up the DAT module and must be called before call-
ing any of the other DAT API functions. The ChaNum argument speci-
fies which DMA channel to open for exclusive use by the DAT module.
For devices with EDMA, the ChaNum argument is ignored because the
quick DMA is used which doesn't have a channel associated with it.
Currently, there are no flags defined and the argument should be set to
zero.
For DMA Devices:
For EDMA Devices:
Once the DAT module is opened, any resources allocated, such as
DMA channels, remain allocated. You can call DAT_Close() that frees
these resources.
If 2D transfers are planned via DAT_Copy2D, the DAT_OPEN_2D flag
must be specified. Specifying this flag for devices with the DMA periph-
eral will cause allocation of one global count reload register and one
global index register. These global registers are freed when
DAT_Close() is called.
Example
To open the DAT module using any available DMA channel, use:
DAT_Open(DAT_CHAANY,DAT_PRI_LOW,0);
To open the DAT module using DMA channel 2 in high priority mode,
use:
DAT_Open(DAT_CHA2,DAT_PRI_HIGH,0);
To open the DAT module for 2D copies, use:
DAT_Open (DAT_CHAANY, DAT_PRI_HIGH, DAT_OPEN_2D);
ChaNum specifies which DMA channel to use
DAT_PRI_LOW sets the DMA channel up for CPU priority
DAT_PRI_HIGH sets the DMA channel up for DMA priority
ChaNum is ignored
DAT_PRI_LOW sets LOW priority
DAT_PRI_HIGH sets HIGH priority
CSL API Reference
DAT
4-17

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TMS320C6000 and is the answer not in the manual?

Table of Contents