Sendframeswithfcs, Rames, 21 sendframeswithfcs – Teledyne LeCroy UWBTracer Verification Script Engine Manual User Manual
Page 46

LeCroy Corporation
Verification Script Engine Manual, version 2.2
9.21 SendFramesWithFCS
This function instructs VSE to send frames with FCS and HCS errors to the script. By default, frames
with FCS and HCS errors are not sent to verification scripts.
•
To determine whether a frame has an HCS error, check
in.Hdr_Err
(It is different from 0 if there
are some header errors. See the WiMedia PHY specification for full error bit descriptions.)
•
To determine whether a frame has an FCS error check
in.FCSError
(It is set to 1 if there is an
FCS error )
Format :
SendFramesWithFCS( send_frames_with_cs_err )
Parameters:
send_frames_with_cs_err
Optional parameter specifies whether frames with FCS and
HCS errros should be sent to the verification script or not.
If it is omitted or set to 1, frames with FCS errros are sent to the script.
Otherwise, VSE sends only frames with correct FCS.
Example:
SendAllChannels (); # Send events from ALL channels.
SendControlFrames(); # Send any Control frames.
SendFramesWithFCS(); # Send frames with FCS or HCS errors.
…
hcs_error_mask = 0x10; # 4 bit (if set) indicates HCS error.
if(
in.Hdr_Err
& hcs_error_mask)
{
# Handle HCS error.
}
…
if(
in.FCSError
)
{
# Handle FCS error.
}
…
SendFramesWithFCS( 0 ); # Send frames with no FCS or HCS errors.
Page 46 of 95