4 frame template inheritance, 1 frame template single inheritance, Frame template inheritance – Teledyne LeCroy UWBTrainer Exerciser Script Language User Manual
Page 32: Frame template single inheritance

LeCroy Corporation
UWBTrainer Exerciser - Generation Script Language Reference Manual
24
8.4 Frame Template Inheritance
You can create a frame/struct template that inherits field layouts defined in another template. The
created template has all the fields defined in the inherited templates plus its own fields. All fields
must have unique names.
Note: The parser adds the fields defined in the created frame template after it adds fields from
the inherited templates.
You can change the default field values of the inherited fields.
8.4.1 Frame Template Single Inheritance
A new template inherits the field layouts from another template using an ancestor list:
Examples
Frame
TX_FRAME : PLCP
{
# Example of a field with variable length having a default value.
Data : * = {
00 00 00 01
}
# The parser can use a declared data pattern name.
FCS :
32
# This field is calculated automatically if autocorrect settings
# are on in the SendFrame instruction.
}
# Other examples of frame templates:
# PHY-MAC header for RX frame + header error fields
Frame
PLCP_RX : PLCP
{
HDERsvd :
3
HDError :
5
}
# Template for generic TX frame
Frame
TX_FRAME : PLCP_TX
{
Data :
*
FCS :
32
# calculated automatically
}