Adi_Flag_Clear; Adi_Flag_Toggle; Adi_Flag_Sense; Callbacks - Analog Devices VisualDSP++ 5.0 Service Manual

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

Advertisement

Operation

adi_flag_Clear

When configured as an output, the
value of the flag to a logical 0, driving low. Refer also to
on page
7-16.

adi_flag_Toggle

When configured as an output, the
the current value of the flag. If the flag was clear/low, this function
changes the flag to set/high. If the flag was set/high, this function changes
the flag to clear/low. Refer also to

adi_flag_Sense

When configured as an input, the
the value of the flag and stores that value in the location provided by the
client. If the flag is clear/low, then a value of
location. If the flag is set/high, then a value of
location. Refer also to

Callbacks

Like other system services, the flag service uses a callback mechanism in
order to notify the client of, typically, asynchronous events.
The Blackfin processor's programmable flags can be configured to gener-
ate interrupts. The flag service provides an internal interrupt handler that
is used to process interrupts from the flag hardware. This interrupt han-
dler makes the appropriate callbacks into the client's application. When a
client installs a flag callback, a parameter to the function dictates whether
the callback should be made live or deferred. Live callbacks mean that the
client's callback function is called at interrupt time. Deferred callbacks
mean that callbacks are not made at interrupt time but rather deferred to a
lower-priority using a specified deferred callback service.
7-6
adi_flag_Clear()
adi_flag_Toggle()
"adi_flag_Toggle" on page
adi_flag_Sense()
"adi_flag_Sense" on page
VisualDSP++ 5.0 Device Drivers and System
Services Manual for Blackfin Processors
function sets the
"adi_flag_Clear"
function inverts
7-24.
function senses
is stored in the
FALSE
is stored in the
TRUE
7-25.

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?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents