6 structure declaration examples, Structure declaration examples – Teledyne LeCroy Voyager Exerciser Generation Script Language Manual User Manual

Page 60

Advertising
background image

Teledyne LeCroy

Voyager USB 3.0 Exerciser Generation Script Language Reference Manual

51

8.6 Structure Declaration Examples

To the parser, structures are the same as packet templates. However, you should use structures
to assign packet field values, rather than packet layouts in Send Packet instructions.

Note: Also see the examples using the Struct keyword to assign packet field values, in later
sections.

Examples

struct

S1

{
F16 :

16

=

0xAABB

F8 :

8

=

0xFE

F32 :

32

=

0xABCD1234

}

struct

S2

{
S8 :

8

=

0xDA

S32 :

32

=

0x56781122

S16 :

16

=

0xBEEF

}

Advertising