__setDataLogBreak
Syntax
__setDataLogBreak(variable,access)
Parameters
variableA string that defines the variable the breakpoint is set on, a variable of integer type with static storage duration. The microcontroller must also be able to access the variable with a single-instruction memory access, which means that you can only set data log breakpoints on 8, 16, and 32-bit variables.
accessThe memory access type:
"R", for read,"W"for write, or"RW"for read/write.
Return value
Result | Value |
|---|---|
Successful | An unsigned integer uniquely identifying the breakpoint. This value must be used to clear the breakpoint. |
Unsuccessful |
|
For use with
The C-SPY simulator.
Description
Sets a data log breakpoint, that is, a breakpoint which is triggered when a specified variable is accessed. Note that a data log breakpoint does not stop the execution, it just generates a data log.
Example
__var brk;
brk = __setDataLogBreak("MyVar",
"R");
...
__clearBreak(brk);