B.1.8. CADICallbackType_t

The values in this type identify the different callback functions. These identifiers are, for example, used in the enable vector forwarded to the CADIXfaceAddCallback() call.

Example B.8. CADICallbackType_t

enum CADICallbackType_t
{
    CADI_CB_AppliOpen       =  0, // Opens the specified filename and returns a
                                  // streamID that the AppliInput and AppliOutput functions can use. 
    CADI_CB_AppliInput      =  1, // This is used for input. Data travels from the host to the target. 
    CADI_CB_AppliOutput     =  2, // This is used for output. Data travels from the target to the host. 
    CADI_CB_AppliClose      =  3, // Close the stream specified by streamID.
    CADI_CB_String          =  4, // The target system calls this to have the debugger display a
                                  // string. Among other things, it can be used for
                                  // things like hazard and stall indication. 
    CADI_CB_ModeChange      =  5, // Call this when the target changes execution modes as defined by
                                  // CADIExecGetModes. The bptNumber parameter is ignored if the mode
                                  // is not CADI_EXECMODE_Bpt. 
    CADI_CB_Reset           =  6, // Called when the target is reset.
    CADI_CB_CycleTick       =  7, // This callback, when installed, is
                                  // called after every cycle that is executed by the target.
    CADI_CB_KillInterface   =  8, // This call must ALWAYS be enabled. This is called when the target
                                  // is dying. No further communication with the target is allowed
                                  // after this callback is made. 
    CADI_CB_Bypass          =  9, // Callback to bypass the interface, to allow
                                  // any string-based communication with the debugger.
    CADI_CB_LookupSymbol    = 10, //  Lookup a symbol from the debugger.
    CADI_CB_DisasmNotifyModeChange = 11, //  Target mode was changed.
    CADI_CB_DisasmNotifyFileChange = 12, // Target file was changed.
    CADI_CB_Refresh         = 13, // Used to notify debugger that it needs to refresh its state
                                  // (e.g., register values changed) 
    CADI_CB_ProfileResourceAccess = 14, //  Profile resource callback.
    CADI_CB_ProfileRegisterHazard = 15, //  Register hazard callback.
    CADI_CB_Count           = 16,
    CADI_CB_ENUM_MAX = 0xFFFFFFFF    };

Copyright © 2008-2011 ARM. All rights reserved.ARM DUI 0444H
Non-ConfidentialID010512