Aller au contenu principal

Objet USBDevice

  • configuration Object (optional) - A USBConfiguration object containing information about the currently selected configuration of a USB device.
    • configurationValue Integer - the configuration value of this configuration.
    • configurationName string - the name provided by the device to describe this configuration.
    • interfaces Object[] - An array of USBInterface objects containing information about an interface provided by the USB device.
      • interfaceNumber Integer - the interface number of this interface.
      • alternate Object - the currently selected alternative configuration of this interface.
        • alternateSetting Integer - the alternate setting number of this interface.
        • interfaceClass Integer - the class of this interface. See USB.org for class code descriptions.
        • interfaceSubclass Integer - the subclass of this interface.
        • interfaceProtocol Integer - the protocol supported by this interface.
        • interfaceName string (optional) - the name of the interface, if one is provided by the device.
        • endpoints Object[] - an array containing instances of the USBEndpoint interface describing each of the endpoints that are part of this interface.
          • endpointNumber Integer - this endpoint's "endpoint number" which is a value from 1 to 15.
          • direction string - the direction in which this endpoint transfers data - can be either 'in' or 'out'.
          • type string - the type of this endpoint - can be either 'bulk', 'interrupt', or 'isochronous'.
          • packetSize Integer - the size of the packets that data sent through this endpoint will be divided into.
      • alternates Object[] - an array containing instances of the USBAlternateInterface interface describing each of the alternative configurations possible for this interface.
  • configurations Object[] - An array of USBConfiguration interfaces for controlling a paired USB device.
  • deviceClass Integer - La classe du périphérique pour l'interface de communication prise en charge.
  • deviceId string - Identifiant unique pour le périphérique.
  • deviceProtocol Integer - Protocole de périphérique pour l'interface de communication pris en charge.
  • deviceSubclass Integer - Sous-classe de périphérique pour l’interface de communication prise en charge par le périphérique.
  • deviceVersionMajor Integer - Numéro de version majeure du périphérique tel que défini par son fabricant.
  • deviceVersionMinor Integer -Numéro de version mineure du périphérique tel que défini par son fabricant.
  • deviceVersionSubminor Integer - Numéro de version submineure du péruiphérique tel que défini par son fabricant.
  • manufacturerName string (facultatif) - Le nom du fabricant du périphérique.
  • productId Identifiant du périphérique.
  • productName string (facultatif) - Nom du périphérique.
  • serialNumber string (optionnel) - Le numéro de série du périphérique.
  • usbVersionMajor Integer - Version majeure du protocole USB prise en charge par le périphérique.
  • usbVersionMinor Integer - The USB protocol minor version supported by the device.
  • usbVersionSubminor Integer - Version submineure du protocole USB prise en charge par le périphérique.
  • vendorId Integer - Identifiant du vendeur du périphérique.