Texas Instruments TMS320C6000 Reference Manual page 76

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

Advertisement

DMA
4.6.10
DMA_GET_CONDITION
Macro
Arguments
Return Value
Description
Example
4.6.11
DMA_GetEventId
Function
Arguments
Return Value
Description
Example
4-28
Gets one of the condition flags in the DMA secondary
control register
DMA_GET_CONDITION(
hDma,
COND
);
Handle to DMA channel. See DMA_Open()
hDma
Condition to get; must be one of the following:
COND
DMA_SECCTL_SXCOND
DMA_SECCTL_FRAMECOND
DMA_SECCTL_LASTCOND
DMA_SECCTL_BLOCKCOND
DMA_SECCTL_RDROPCOND
DMA_SECCTL_WDROPCOND
DMA_SECCTL_RSYNCSTAT
DMA_SECCTL_WSYNCSTAT
Condition, 0 if clear, 1 if set
Condtion
This macro gets one of the condition flags in the DMA secondary con-
trol register. See the TMS320C6000 Peripherals Reference Guide (liter-
ature number SPRU190) for a description of the condition flags.
if (DMA_GET_CONDITION(hDma,DMA_SECCTL_BLOCKCOND)) {
/* user DMA configuration */
}
Returns the IRQ event ID for the DMA completion
interrupt
UINT32 DMA_GetEventId(
DMA_HANDLE hDma
);
Handle to DMA channel. See DMA_Open()
hDma
IRQ Event ID for DMA Channel
Event ID
Returns the IRQ Event ID for the DMA completion interrupt. Use this ID
to manage the event using the IRQ module.
EventId = DMA_GetEventId(hDma);
IRQ_Enable(EventId);

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?

Questions and answers

Table of Contents