Computer Access Technology Corporation
IB
Tracer
Verification Script Engine Manual, version 1.0
Page 16 of 35
8.2
SendEvent ()
This function specifies what kind of events should be sent to script.
Format
:
SendEvent(
event
)
Parameters:
event
– This parameter can be combination of the following values:
event
value
Description
_PKT_TS1
TS1
_PKT_TS2
TS2
_PKT_LINK Link
Packet
_PKT_MAD
MAD packets
_PKT_RC
Reliable Connection packets
_PKT_RD
Reliable Datagram packets
_PKT_UC
Unreliable Connection packets
_PKT_UD
Unreliable Datagram packets
_PKT_SKIPS Skips
_EVNT_CONNECT
Physical link woke up from silence
_EVNT_DISCONNECT
Physical link came to silence (no physical signal)
_EVNT_LINKSTATE_CHANGE
Changing of Opcode in series of link packets
Some special values can be used covering large groups of events:
_ALL_PACKETS
All possible packets
_ALL_EVENTS
All possible notification events
_ALL
All possible packets and notification events
Example:
SendEvent(
_PKT_LINK
);
# - send link packets
SendEvent(
_PKT_LINK | _PKT_MAD
); # - send link packets and MADs
SendEvent(
_ALL_PACKETS | _EVNT_DISCONNECT
);
# - send all possible packets and Disconnect notification