Teledyne-lecroy USB File Based Decode Manual Manuel d'utilisateur Page 19

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 36
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 18
15
COMPUTER ACCESS TECHNOLOGY CORPORATION USB REQUEST DEFINITION (.REQ) FILES
Reference Manual
Depends(...)
Use Depends(...) to create a definition that displays a a field or a set of fields
in different ways, depending on certain conditions. It works similarly to a C
language switch statement. The basic structure of a Depends(...) definition
is this:
Depends(<keyword>[&<mask value>]
opt
)=
{
<value>=
{
...
}
...
[<keyword>= ...]
opt
}
Keywords
Keywords that can be used inside the parentheses of a Depends(...) definition
are: bmRequestType, Databytes(m,n), wIndex, and wValue. The value
to which the keyword refers is the condition that the decoding depends upon.
Possible values, along with their corresponding decoding definitions, are listed
within the curly braces on the right-hand side of the Depends(...) entry. In this
example,
wValue=
{
Depends(bmRequestType)=
{
0x01=
{
WordValue=
{
0x0000=One
}
}
0x02=
{
FormatValue=Two %d
}
}
}
Vue de la page 18
1 2 ... 14 15 16 17 18 19 20 21 22 23 24 ... 35 36

Commentaires sur ces manuels

Pas de commentaire