User`s guide

Libraries and Runtime Code
EOnCE Library
335Targeting MC56F83xx/DSP5685x Controllers
_eonce_SetTrigger
Sets a trigger condition used to halt the processor, cause an interrupt, or start and stop
the trace buffer. This function does not set triggers for special counting functions.
Prototype
int _eonce_SetTrigger( unsigned int unit, unsigned long options,
unsigned long value1, unsigned long value2, unsigned long
mask, unsigned int counter )
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 bits of value2 to compare.
counterunsigned int
Specifies the number of successful comparison matches to count before completing
trigger sequence as defined by the options parameter
Remarks
This function sets all triggers, except those used to define the special counting function
behavior. Carefully read the list of defined identifiers that can be OR’ed into the
options parameter.