__setDataBreak
Syntax
__setDataBreak(location, count, condition, cond_type, access, action)Parameters
locationA string that defines the data location of the breakpoint, either a valid C-SPY expression whose value evaluates to a valid address or an absolute location. For information about the location types, see Enter Location dialog box.
countAn integer that specifies the number of times that a breakpoint condition must be fulfilled before a break occurs the next time.
conditionThe breakpoint condition (string). For information about restrictions affecting real-time execution performance, see Data breakpoints.
cond_typeThe condition type; either
"CHANGED"or"TRUE"(string). For information about restrictions affecting real-time execution performance, see Data breakpoints.
accessThe memory access type:
"R", for read,"W"for write, or"RW"for read/write.
actionAn expression, typically a call to a macro, which is evaluated when the breakpoint is detected.
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
All C-SPY drivers.
Description
Sets a data breakpoint, that is, a breakpoint which is triggered directly after the processor has read or written data at the specified location.
Example
__var brk; brk = __setDataBreak(":0x4710", 3, "d>6", "TRUE","W", "ActionData()");... __clearBreak(brk);