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 pair of
two-dimensional buffers to the
sion out through the driver. Each buffer describes an NTSC ITU-656
frame of data. Each frame consists of 525 rows, each containing 1716
bytes of data. The driver calls back the application when each buffer has
been processed, passing the address of the buffer that just completed as a
parameter to the callback function.
#define NUM_BUFFERS (2)
#define NUM_FRAMES
#define COLUMNS
#define ROWS
static u8 Frames[NUM_FRAMES][COLUMNS * ROWS];
static ADI_DEV_2D_BUFFER Buffer[NUM_BUFFERS];
u32 i; // counter
// create buffers for the driver to process
for (i = 0; i < NUM_BUFFERS; i++) {
Buffer[i].Data
Buffer[i].ElementWidth
Buffer[i].XCount
Buffer[i].XModify
Buffer[i].YCount
Buffer[i].YModify
Buffer[i].CallbackParameter = &Buffer[i];
VisualDSP++ 5.0 Device Drivers and System
Services Manual for Blackfin Processors
subdirectory.
adi_dev_Write()
(2)
(1716)
(525)
// storage for data
// the actual buffer
// gen callback, pArg = buffer address
Device Driver Manager
function for transmis-
= &Frames[i][0];
= 2;
= (COLUMNS >> 1);
= 2;
= ROWS;
= 2;
10-25
Need help?
Do you have a question about the VisualDSP++ 5.0 and is the answer not in the manual?