beautypg.com

Sendcontrolframes(), Ontrol, Rames – Teledyne LeCroy UWBTracer Verification Script Engine Manual User Manual

Page 41: 16 sendcontrolframes()

background image

LeCroy Corporation

Verification Script Engine Manual, version 2.2





9.16 SendControlFrames()


This function specifies more precise tuning for Control frames.

Format:

SendControlFrames(dest_id, src_id, subtype)


Parameters:

dest_id

This parameter specifies that only Control frames containing Destination Id with the
same value are sent. (The value_ANY means any Destination Id is accepted.)


src_id

This parameter specifies that only Control frames containing Source Id with the
same value are sent. (The value_ANY means any Source Id is accepted.)

sub_type

This parameter specifies that only Control frames having SubType field with the
same value are sent. (The value_ANY means any SubType is accepted.)

Example:

# Send any Control frames.

SendControlFrames();

# Send Control frames having Destination Id 0xBEEF.

SendControlFrames (0xBEEF);

# Send Control frames having Destination Id = 0xBEEF and Source Id = 0xAABB.

SendControlFrames (0xBEEF, 0xAABB);

# Send Control frames having Frame SubType = CF_APPLICATION (14).

# CF_APPLICATION and other Control Frame subtype constants are defined

# in "VS_constants.inc" file.

SendControlFrames (_ANY, _ANY, CF_APPLICATION);

Page 41 of 95