Teledyne-lecroy Voyager Exerciser Generation Script Language Manua Manual de usuario Pagina 42

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 167
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 41
Teledyne LeCroy Voyager USB 3.0 Exerciser Generation Script Language Reference Manual
33
8.2.2 Defining a Field at the Current Offset
If the field offset is omitted, the field's offset is calculated based on the lengths of previously
declared fields. The initial template offset is always 0.
Example
const F3_OFFSET = 64
const F3_LEN = 8
# Declare the packet template 'SomeTemplate'.
Packet SomeTemplate
{
F1 : 16 # Declare the 16-bit field 'F1' at offset 0.
F2 : 32 # Declare the 32-bit field 'F2' at offset 16.
F3 : F3_OFFSET, F3_LEN # Declare the 8-bit field 'F2' at offset 64.
F4 : 16 # Declare the 16-bit field 'F4' at offset 64+8.
}
Vista de pagina 41
1 2 ... 37 38 39 40 41 42 43 44 45 46 47 ... 166 167

Comentarios a estos manuales

Sin comentarios