Teledyne-lecroy UWBTrainer Exerciser Script Language Instrukcja Użytkownika Strona 33

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 124
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 32
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
}
Przeglądanie stron 32
1 2 ... 28 29 30 31 32 33 34 35 36 37 38 ... 123 124

Komentarze do niniejszej Instrukcji

Brak uwag