|
| main (cust) |
|
| reset_target (*args) |
| Send the RESET packet to the Target.
|
|
| command (cmdId, param1=0, param2=0, param3=0) |
| executes a given command in the Target
|
|
| tick (tick_rate=0) |
| trigger system clock tick in the Target
|
|
| peek (offset, size, num) |
| peeks data in the Target
|
|
| poke (offset, size, data) |
| pokes data into the Target
|
|
| glb_filter (*args) |
| Set/clear the Global-Filter in the Target.
|
|
| loc_filter (*args) |
| Set/clear the Local-Filter in the Target.
|
|
| ao_filter (obj_id) |
| Set/clear the Active-Object Local-Filter in the Target.
|
|
| current_obj (obj_kind, obj_id) |
| Set the Current-Object in the Target.
|
|
| query_curr (obj_kind) |
| query the current object in the Target
|
|
| publish (signal, params=None) |
| publish a given event to subscribers in the Target
|
|
| post (signal, params=None) |
| post a given event to the current AO object in the Target
|
|
| init (signal=0, params=None) |
| take the top-most initial transition in the current SM object in the Target
|
|
| dispatch (signal, params=None) |
| dispatch a given event in the current SM object in the Target
|
|
| qunpack (fmt, bstr) |
| Unpack a QS trace record.
|
|
| customize (cust) |
| Set QView customization.
|
|
| print_text (string) |
| Print a string to the Text area.
|
|
| show_canvas (view=1) |
| Make the canvas visible (to be used in the constructor of the customization class)
|
|
| show_frame (view=1) |
| Make the frame visible (to be used in the constructor of the customization class)
|
|
Definition at line 50 of file qview.py.
qview.QView.qunpack |
( |
| fmt, |
|
|
| bstr ) |
|
static |
Unpack a QS trace record.
@description The qunpack() facility is similar to Python struct.unpack()
, specifically designed for unpacking binary QP/Spy packets. qunpack() handles all data formats supported by struct.unpack()`, plus data formats specific to QP/Spy. The main benefit of qunpack() is that it automatically applies the Target-supplied info about various the sizes of various elements, such as Target timestamp, Target object-pointer, Target event-signal, zero-terminated string, etc.
pokes data into the Target
- See also
- qutest_dsl.poke()
- Parameters
-
[in] | fmt | format string |
[in] | bstr | byte-string to unpack |
- Returns
- The result is a tuple with elements corresponding to the format items.
The additional format characters have the following meaning:
- T : QP/Spy timestamp -> integer, 2..4-bytes (Target dependent)
- O : QP/Spy object pointer -> integer, 2..8-bytes (Target dependent)
- F : QP/Spy function pointer -> integer, 2..8-bytes (Target dependent)
- S : QP/Spy event signal -> integer, 1..4-bytes (Target dependent)
- Z : QP/Spy zero-terminated string -> string of n-bytes (variable length)
@usage
data = qunpack("xxTxBxZ", packet)
Definition at line 437 of file qview.py.