Teledyne-lecroy Verification Script Engine (VSE) Manual Manuel d'utilisateur Page 51

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 115
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 50
Teledyne LeCroy Verification Script Engine Reference Manual
Page 51 of 115
8.14 SendUsb2TokenPackets()
This function specifies more precise tuning for USB2 Token packets.
Format: SendUsb2TokenPackets (pid, address, endpoint)
Parameters:
pid Specifies that only Token packets with the specified PID value are sent.
The value _ANY means any PID is accepted.
The possible PID values are
const PID_OUT = 0x87;
const PID_IN = 0x96;
const PID_SETUP = 0xB4;
const PID_SPLIT = 0x1E;
const PID_PING = 0x2D;
const PID_EXT = 0x0F;
address Specifies that only Token packets with the specified Address value are sent.
The value _ANY means any Address is accepted.
endpoint Specifies that only Token packets with the specified Endpoint value are sent.
The value _ANY means any Endpoint is accepted.
Example:
# Send any Token packet.
SendUsb2TokenPackets();
# Send all SETUP packets.
SendUsb2TokenPackets (PID_SETUP);
# Send all IN tokens for address 5 endpoint 1.
SendUsb2TokenPackets (PID_IN, 3);
# Send all OUT tokens for address 3.
SendUsb2TokenPackets (PID_OUT, 5, 1);
# Send all token packets for endpoint zero.
SendUsb2TokenPackets (_ANY, _ANY, 0);
Vue de la page 50
1 2 ... 46 47 48 49 50 51 52 53 54 55 56 ... 114 115

Commentaires sur ces manuels

Pas de commentaire