Creating Sequential One-Dimensional Buffers
Buffer.CallbackType
// give the buffer to the driver to send out
Result = adi_dev_Write(Handle, ADI_DEV_CIRC, (ADI_DEV_BUFFER
*)&Buffer);
Creating Sequential One-Dimensional
Buffers
The
ADI_DEV_SEQ_1D_BUFFER
tial, one-dimensional (linear) array of data that a device driver processes.
Similar to the standard one-dimensional buffers, applications populate the
various fields of the buffer to completely describe the data to the device
driver. In fact, a sequential, one-dimensional buffer is a concatenation of a
standard one-dimensional buffer with a direction field appended to the
end of the standard buffer. For sequential, one-dimensional buffers, appli-
cations populate the following fields of the
structure:
•
Buffer
one-dimensional buffer, is populated exactly as the standard
one-dimensional buffer. Refer to
Buffers" on page 10-19
one-dimensional buffer.
•
Direction
choices:
•
ADI_DEV_DIRECTION_INBOUND
value if the buffer is for data received in from the device.
•
ADI_DEV_DIRECTION_OUTBOUND
value if the buffer is for data that is transmitted out through
the device.
10-28
data structure is used to describe a sequen-
– The buffer entry, which is identical to the standard
for information on populating a standard
– This field is populated with one of the following
VisualDSP++ 5.0 Device Drivers and System
= ADI_DEV_CIRC_SUB_BUFFER;
ADI_DEV_SEQ_1D_BUFFER
"Creating One-Dimensional
– Populate the field with this
– Populate the field with this
Services Manual for Blackfin Processors
Need help?
Do you have a question about the VisualDSP++ 5.0 and is the answer not in the manual?