8 frame and structure template declarations, 1 predefined frame/structure templates, Frame and structure template declarations 13 – Teledyne LeCroy UWBTrainer Exerciser Script Language User Manual
Page 21: Predefined frame/structure templates, Frame inst, Packet inst, Struct inst, 8frame and structure template declarations

LeCroy Corporation
UWBTrainer Exerciser - Generation Script Language Reference Manual
13
8
Frame and Structure Template Declarations
Frame/structure declarations declare named frame/structure objects. A frame/structure object
gives its target byte stream a set of "fields", each having a unique name. You can fully set up a
byte stream using frame/structure fields.
Note
1
: Templates can inherit field layouts from other templates through ancestor lists.
(
Packet
|
Frame
|
Struct
)
Template_Name
[
: Ancestor_1, Ancestor_ 2, …
]
[
(Attribute list)
]
[
{
Field Definition 1
Field Definition 2
...
}
]
Note
2
: For frame/structure template declarations, you can use the Frame or Struct keyword.
However, structures are supposed to be used as building blocks for constructing frame payloads
(or similar purposes), rather than for describing full frames.
8.1 Predefined Frame/Structure Templates
LeCroy PSG provides some useful WiMedia frame templates that can be used in generation
scripts. The predefined frame/structure templates are listed in the file:
UWBTracer\Generation\Include\main_pkt_templates.ginc