User`s guide
Libraries and Runtime Code
EOnCE Library
336
Targeting MC56F83xx/DSP5685x Controllers
Returns
Error code as defined in the sub-section “Definitions.”
_eonce_SetCounterTrigger
Sets a trigger condition used for special counting functions.
Prototype
int _eonce_SetCounterTrigger( unsigned int unit, unsigned long
options, unsigned long value1, unsigned long value2,
unsigned long mask, unsigned int counter, unsigned long
counter2 )
Parameters
unitunsigned int
Specifies which breakpoint unit to use.
optionsunsigned long
Describes the behavior of the trigger. For more information on the identifiers for this
parameter, please see the sub-section “Definitions”
.
value1unsigned long
Specifies the address or data value to compare as defined by the options parameter.
value2unsigned long
Specifies the address or data value to compare as defined by the options parameter.
maskunsigned long
Specifies which bit of value2 to compare.
counterunsigned int
Specifies the value used to pre-load the counter, which proceeds backward when
EXTEND_COUNTER is OR’ed into the options parameter. counter contains the
least significant 16-bits.