Associated Macros
These macros are defined for internal use by the flag service.
ADI_FLAG_CREATE_FLAG_ID
ADI_FLAG_GET_BIT
ADI_FLAG_GET_OFFSET
ADI_FLAG_GET_MASK
ADI_FLAG_RESULT
Each API function of the flag service returns an
enumeration as a return code. As with all system services, generic success is
defined as 0 and generic failure is defined as 1. This allows the calling
function to quickly evaluate the return code for a zero or nonzero value.
All detailed result codes for the flag service begin with the value
ADI_FLAG_ENUMERATION_START
Result code
ADI_FLAG_RESULT_SUCCESS=0
ADI_FLAG_RESULT_FAILED=1
ADI_FLAG_RESULT_INVALID_FLAG_ID
ADI_FLAG_RESULT_INTERRUPT_MANAGER_ERROR
ADI_FLAG_RESULT_ERROR_REMOVING_CALLBACK
ADI_FLAG_RESULT_ALL_IN_USE
ADI_FLAG_RESULT_PORT_CONTROL_ERROR
VisualDSP++ 5.0 Device Drivers and System
Services Manual for Blackfin Processors
Programmable Flag Service
Creates a flag ID given a bit position and register
offset
Gets the bit position given a flag ID
Gets the register offset given a flag ID
Creates a mask for a given flag ID that can be used
to manipulate hardware control registers for the
given flag.
ADI_FLAG_RESULT
for easy identification.
Description
Generic success = 0
Generic failure = 1
(0x80001) invalid flag ID
(0x80002) error returned from inter-
rupt manager
(0x80003) no callback installed for
given ID
(0x80004) all flag slots in use
(0x80005) error within port control
7-33
Need help?
Do you have a question about the VisualDSP++ 5.0 and is the answer not in the manual?