Analog Devices EZ-KIT Getting Started page 61

Hp switch getting started
Table of Contents

Advertisement

desc[i].ProcessedFlag
desc[i].pNext
if ((Result = adi_dev_Write(AD1980DriverHandle,
{
printf("Failed to submit buffer descriptor, "
"Error Code: 0x%08X\n", Result);
return 1;
}
return (Result != ADI_DEV_RESULT_SUCCESS);
}
The data transfer functions require more information than just the appli-
cation buffer's address and length—the functions need to know whether
the application wants notified when the transfer is complete. To accom-
modate this per-transfer information, the device manager API defines a
structure (
ADI_DEV_BUFFER
fields. The
PlayBuffer()
and passes the address of the buffer descriptor to
Note that the call to
actual data transfer. A successful function return does not imply that the
data has been written to the peripheral; rather the buffer is queued for
transfer at some future point. Similarly, a call to
return any data: the function only queues the buffer for future filling.
How does an application know when data has been received or written? By
setting the
CallbackParameter
value, the application signals that it wants its callback function, which it
registered when it opened the device driver, to be called when the buffer
has been processed.
Getting Started with ADSP-BF548 EZ-KIT Lite
Using ADSP-BF548 EZ-KIT Lite Peripherals
= FALSE;
= NULL;
ADI_DEV_1D,
(ADI_DEV_BUFFER *)&desc[i]))
!= ADI_DEV_RESULT_SUCCESS)
) for a buffer descriptor containing appropriate
function in
Listing 3-4
adi_dev_Write()
field of the buffer descriptor to a non-
fills in the required fields
adi_dev_Write()
is asynchronous with respect to the
adi_dev_Read()
.
does not
NULL
3-15

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the EZ-KIT and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Adsp-bf548 ez-kit lite

Table of Contents