I try to operate the SPORT of the ADSP - BF548 in chain mode using the SPORT driver - with no success.
does any one have an example for that
Attached is an example code that I developed sometime back.
Look at the device driver manual and the sport driver document for further dertails.
Thank you for the example.
The SPORT does seem to transmit all the data (checked by Scope), but the Callback is never called!
Hence the application is not able to receive any data.
Do you have a clue what might be the reason for that?
In Prasanth's example, there is no callback-type specified for the buffers. I haven't tested the code but there should no interrupt be generated.
You need something like this (for circular buffers):
InboundBuffer.CallbackType = ADI_DEV_CIRC_SUB_BUFFER;
InboundBuffer.CallbackType = ADI_DEV_CIRC_FULL_BUFFER;
OutboundBuffer.CallbackType = ADI_DEV_CIRC_NO_CALLBACK;
The device driver and system services manual gives you the paramaters that are available for any type of buffer.
You would be right if we were working with Circular buffers.
In 1D buffers I just have to specify a non-NULL callback parameter, so the callback is now generated correctly.
It's strange that nothing is written about it in the help topic describing ADI_DEV_1D_BUFFER fields...
Thanks for the help to both of you!
Retrieving data ...