User`s guide
Libraries and Runtime Code
EOnCE Library
338
Targeting MC56F83xx/DSP5685x Controllers
_eonce_GetCounters
Retrieves the values in the two counter registers.
Prototype
int _eonce_GetCounters( unsigned int unit, unsigned int
*counter, unsigned long *counter2 )
Parameters
unitunsigned int
Specifies which breakpoint unit to use.
counterunsigned int *
Holds the value of the counter, or the least significant 16-bits, if the counter has been
extended to 40-bits.
counter2unsigned long *
Holds the most significant 24-bits if the counter has been extended to 40-bits. This
parameter must be a valid pointer even if the counter has not been extended.
Remarks
This function retrieves the value of the counter of the specified breakpoint unit. This
function is most useful when using the special counting function of the breakpoint, but
can also be used to retrieve the trigger occurrence counter.
Returns
Error code as defined in the sub-section “Definitions.”
_eonce_GetCounterStatus
Retrieves the status of the breakpoint counter.
Prototype
int _eonce_GetCounters( char *counterIsZero, char