Teledyne LeCroy UWBTrainer Exerciser Script Language User Manual
Page 33

LeCroy Corporation
UWBTrainer Exerciser - Generation Script Language Reference Manual
25
# Template for generic RX frame
Frame
RX_FRAME : PLCP_RX
{
Data :
*
FCS :
32
# Calculated automatically
RSSI :
8
LQI :
8
RXERsvd :
3
RXError :
5
}
# Example of declaration of some field at some offset and
# declaration of some consecutive fields after that.
const
OPCODE_OFFSET =
128
Frame
TX_FRAME_1 : TX_FRAME
{
# The field 'FrameType' now has a different default value.
# For example, the constant DATA = 3
FrameType = DATA
# Declare the field 'Opcode' ( offset : 128 , length : 8 )
# having default value 0x2A.
Opcode : OPCODE_OFFSET,
8
=
0x2A
# Declare the field 'LBA'(offset : 128+8, length : 64)
LBA :
64
}
# Example of using arithmetic and data pattern names
# in field definitions.
Frame
MY_TX : TX_FRAME
{
# Declaration of the field at offset: 18 * 8 bits, length: 8 bits
MyLen : TX_PAYLOAD_OFFSET + (
3
*
8
),
8
# Setting a field value using a previously declared data
pattern.
Data = PATTERN_4
}