Teledyne-lecroy USB Script Decode Manual Manual de usuario Pagina 10

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 90
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 9
4
CHAPTER 2
CATC Scripting Language for USB Values
Escape Sequences
These are the available escape sequences in CSL:
Lists
A list can hold zero or more pieces of data. A list that contains zero pieces of data
is called an empty list. An empty list evaluates to false when used in an expression,
whereas a non-empty list evaluates to true. List literals are expressed using the
square bracket ([]) delimiters. List elements can be of any type, including lists.
[1, 2, 3, 4]
[]
["one", 2, "three", [4, [5, [6]]]]
Raw Bytes
Raw binary values are used primarily for efficient access to packet payloads. A
literal notation is supported using single quotes:
'00112233445566778899AABBCCDDEEFF'
This represents an array of 16 bytes with values starting at 00 and ranging up to
0xFF. The values can only be hexadecimal digits. Each digit represents a nybble
(four bits), and if there are not an even number of nybbles specified, an implicit zero
is added to the first byte. For example:
'FFF'
is interpreted as
'0FFF'
Null
Null indicates an absence of valid data. The keyword null represents a literal
null value and evaluates to false when used in expressions.
Character
Escape
Sequence Example Output
backslash \\ "This is a backslash: \\" This is a backslash: \
double quote \" "\"Quotes!\"" "Quotes!"
horizontal tab \t "Before tab\tAfter tab" Before tab After tab
newline \n "This is how\nto get a newline." This is how
to get a newline.
single quote \' "\'Single quote\'" 'Single quote'
Table 2.2: Escape Sequences
Vista de pagina 9
1 2 ... 5 6 7 8 9 10 11 12 13 14 15 ... 89 90

Comentarios a estos manuales

Sin comentarios