6 structure declaration examples, Structure declaration examples – Teledyne LeCroy UWBTrainer Exerciser Script Language User Manual
Page 43
Advertising
LeCroy Corporation
UWBTrainer Exerciser - Generation Script Language Reference Manual
35
8.6 Structure Declaration Examples
To the parser, structures are the same as frame templates. However, you should use structures
to assign frame field values, rather than as frame layouts in Send Frame instructions.
Note: Also see the examples using the Struct keyword to assign frame field values in later
sections.
Examples
struct
S1
{
F16 :
16
=
0xAABB
F8 :
8
=
0xFE
F32 :
32
=
0xABCD1234
}
struct
S2
{
S8 :
8
=
0xDA
S32 :
32
=
0x56781122
S16 :
16
=
0xBEEF
}
Advertising