Analog Devices VisualDSP++ 5.0 Service Manual page 218

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

Advertisement

Using the Deferred Callback Manager
&p_DCB_handle
);
The DCB manager is now ready to accept callback postings to the queue
server. Note that this function is normally performed in an ISR of another
service. The DCB manager passes the address of the client callback func-
tion and its associated argument values to the queue server identified by
the handle obtained:
adi_dcb_Post(
p_DCB_handle,
0,
ClientCallback,
pService,
event,
(void*)data
);
In the example above,
completion) and
ory that is meaningful within the context of the callback function. Within
the DMA manager context, this argument is the address of an appropriate
descriptor or data buffer.
For any reason, flushing the queue of entries for the above callback can be
achieved in one of two ways: by calling the
directly or by calling it indirectly using the
5-6
// handle to required queue server.
// Priority level.
// Address of callback function.
// Address of the service instance
// that is posting the callback.
// Flag identifying the event that
// has precipitated the interrupt.
// Address of data relevant to the
// callback.
typically defines an event (for example, DMA
event
typically points to an appropriate location in mem-
data
VisualDSP++ 5.0 Device Drivers and System
Services Manual for Blackfin Processors
// entries (5 in this case).
// returned handle to queue server
adi_dcb_Remove
adi_dcb_Control
function
function.

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