
LeCroy Corporation UWBTrainer Exerciser - Generation Script Language Reference Manual
22
8.3 Constants/Arithmetic Expressions in Template
Declarations
You can use constants and arithmetic expressions in both field definitions and value declarations.
Examples
const BM_LENGTH = 1
# Declare the frame template 'PLCP'.
Frame PLCP
{
# PHY HEADER
# Declare the field 'Rate' ( offset : 0, length : 5 bits ), having
# default value RATE_53MBS ( 0 ).
Rate : 5 = RATE_53MBS
Reserved0 : 3
Len7_0 : 8
Scr : 2
Reserved1 : 2
Len11_8 : 4
BG : 1
TFCode : 3 = 1
PreType : 1
BM : BM_LENGTH # Constant in a field definition.
Reserved2 : 10
Comentarios a estos manuales