Operation
• Falling edge – callback generated on the falling edge
• Both edges – callback generated on both the rising and falling edge
The callback function address specifies a callback function of the type
ADI_DCB_CALLBACK_FN
tion on this data type). When invoked, the callback function is passed
three parameters:
•
ClientHandle
was installed
•
ADI_FLAG_EVENT_CALLBACK
•
FlagID
When the deferred callback service handle parameter passed to the
adi_flag_InstallCallback
live, meaning it is invoked at interrupt time. If the deferred callback
service handle parameter is non-NULL, the flag service uses the specified
deferred callback service to invoke the callback.
A single callback function can be used and installed for any number of
flags; the callback function can use the
which flag generated the callback. Note, however, that only one callback
should be installed for a given flag.
This function does not alter flag control, such as direction.
adi_flag_RemoveCallback
The
adi_flag_RemoveCallback()
from a specified flag. This function disables interrupt generation for the
flag and removes the callback from its internal tables. Unless reinstalled,
no further callbacks occur for the specified flag. After calling this function,
the memory freed by removing the callback is available for the flag service
7-8
(see the deferred callback service for more informa-
– a value provided by the client when the callback
– the flag ID of the flag that generated the callback
function is NULL, the callback is executed
VisualDSP++ 5.0 Device Drivers and System
– indicates a flag callback event
parameter to determine
FlagID
function is used to remove a callback
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?