Sendserialdata(), Erial, 14 sendserialdata() – Teledyne LeCroy UWBTracer Verification Script Engine Manual User Manual
Page 39
LeCroy Corporation
Verification Script Engine Manual, version 2.2
9.14 SendSerialData()
This function specifies more precise tuning for Serial Data events. Only selected Serial Data are sent.
Format:
SendSerialData (direction, register, value)
Parameters:
direction
This parameter specifies Serial Data direction.
This parameter can have one of the following values:
Direction Meaning
_READ
Serial Data Read
_WRITE
Serial Data Write
_ANY Any
direction
register
This list parameter specifies PHY register.
value
This list parameter specifies PHY value.
Note: You can use constant _ANY as a parameter value to specify that any value is acceptable.
If some of the parameters are missing, it is assumed that they are equal to _ANY.
If there is no parameter at all, all Serial Data events are sent, which is the same as
SendTraceEvent(_SERIAL_DATA))
Example:
# Send only READ Serial Data events (with any register and value).
SendSerialData(_READ);
…
# Send only WRITE Serial Data events, with register = 0 and any value.
SendSerialData(_WRITE, 0);
…
# Send only WRITE Serial Data events, with register = 0 and value = 0x15.
SendSerialData(_WRITE, 0, 0x15);
…
# Send Serial Data events, with any register and value = 0x15.
SendSerialData(_ANY, _ANY, 0x15);
…
# Send all Serial Data events.
SendSerialData();
Page 39 of 95