Analog Devices VisualDSP++ 5.0 Service Manual page 419

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

Advertisement

When buffers are submitted to the device driver via the
or
adi_dev_Write()
lowing fields be populated:
ProcessedFlag
the device driver processes the buffer. For information describing
whether this field is used by the particular device driver, refer to
the documentation specific to the device driver, located in the
.../Blackfin/doc
ProcessedElementCount
number of elements processed by the driver for the given buffer.
For example, if a networking driver submitted a buffer describing
100 bytes of data to the
data packet that contains only 75 bytes of data, the driver may set
this value to 75. This would indicate that although 100 bytes was
requested, only 75 bytes were available. For information describing
whether this field is used by the particular device driver, refer to
the documentation specific to the device driver, located in the
.../Blackfin/doc
For example, the following code fragment prepares and submits a single
buffer of 128 16-bit elements to the
calls back the application when the buffer has been processed, passing the
value 0x12345678 as a parameter to the callback function.
#define SAMPLES_PER_BUFFER
static u16 Data[SAMPLES_PER_BUFFER];
static ADI_DEV_1D_BUFFER Buffer;
// create buffer for the driver to process
Buffer.Data
Buffer.ElementCount
Buffer.ElementWidth
VisualDSP++ 5.0 Device Drivers and System
Services Manual for Blackfin Processors
functions, some device drivers do not require the fol-
– Some device drivers set this value to TRUE after
subdirectory.
– Some device drivers set this value to the
adi_dev_Read()
subdirectory.
adi_dev_Read()
(128)
= Data;
= SAMPLES_PER_BUFFER;
= 2;
Device Driver Manager
adi_dev_Read()
function for an incoming
function. The driver
// number of samples
// in a data buffer
// storage for data
// the actual buffer
10-21

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?

Subscribe to Our Youtube Channel

Table of Contents