Adi_Dma_Control - Analog Devices VisualDSP++ 5.0 Service Manual

Visualdsp++ 5.0 device drivers and system for blackfin processors
Table of Contents

Advertisement

adi_dma_Control

Description
The
adi_dma_Control
specified DMA channel.
The function can be used in several ways:
• A single command is passed.
adi_dma_Control(
ChannelHandle, ADI_DMA_CMD_SET_LOOPBACK, (void*)
TRUE);
• A single command-value pair is passed.
ADI_DMA_CMD_VALUE_PAIR cmd = {
ADI_DMA_CMD_SET_WORD_SIZE, (void*)
ADI_DMA_WDSIZE_32BIT};
adi_dma_Control(ChannelHandle, cmd.CommandID ,cmd.Value);
• A single
reference).
adi_dma_Control(ChannelHan-
dle,ADI_DMA_CMD_VALUE_PAIR,&cmd);
• A table of
have the following terminator entry to signify the end of the table
of commands:
ADI_DMA_CMD_VALUE_PAIR table = {
{ADI_DMA_CMD_SET_LOOPBACK,
{ADI_DMA_CMD_SET_DATAFLOW,
{ ADI_DMA_CMD_END, NULL };
adi_dma_Control(ChannelHandle,ADI_DMA_CMD_TABLE,&table);
VisualDSP++ 5.0 Device Drivers and System
Services Manual for Blackfin Processors
function controls/queries the operation of the
ADI_DMA_CMD_VALUE_PAIR
ADI_COMMAND_PAIR
{ ADI_DMA_CMD_END, 0 }
structure is passed (by
structures is passed. The table must
. For example,
(void*)LoopbackFlag},
(void*)TRUE},
DMA Manager
6-37

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the VisualDSP++ 5.0 and is the answer not in the manual?

Table of Contents