tinyusb  0.4
Click here to lend your support to tinyusb donation and make a donation at pledgie.com
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
tusb_descriptor_interface_t Struct Reference

USB Standard Interface Descriptor (section 9.6.1 table 9-12) More...

#include <std_descriptors.h>

Data Fields

uint8_t bLength
 Size of this descriptor in bytes.
 
uint8_t bDescriptorType
 INTERFACE Descriptor Type.
 
uint8_t bInterfaceNumber
 Number of this interface. Zero-based value identifying the index in the array of concurrent interfaces supported by this configuration.
 
uint8_t bAlternateSetting
 Value used to select this alternate setting for the interface identified in the prior field.
 
uint8_t bNumEndpoints
 Number of endpoints used by this interface (excluding endpoint zero). If this value is zero, this interface only uses the Default Control Pipe.
 
uint8_t bInterfaceClass
 Class code (assigned by the USB-IF). More...
 
uint8_t bInterfaceSubClass
 Subclass code (assigned by the USB-IF).
These codes are qualified by the value of the bInterfaceClass field. More...
 
uint8_t bInterfaceProtocol
 Protocol code (assigned by the USB).
These codes are qualified by the value of the bInterfaceClass and the bInterfaceSubClass fields. If an interface supports class-specific requests, this code identifies the protocols that the device uses as defined by the specification of the device class. More...
 
uint8_t iInterface
 Index of string descriptor describing this interface.
 

Detailed Description

USB Standard Interface Descriptor (section 9.6.1 table 9-12)

Definition at line 90 of file std_descriptors.h.

Field Documentation

uint8_t bInterfaceClass

Class code (assigned by the USB-IF).

  • A value of zero is reserved for future standardization.
  • If this field is set to FFH, the interface class is vendor-specific.
  • All other values are reserved for assignment by the USB-IF.

Definition at line 97 of file std_descriptors.h.

uint8_t bInterfaceProtocol

Protocol code (assigned by the USB).
These codes are qualified by the value of the bInterfaceClass and the bInterfaceSubClass fields. If an interface supports class-specific requests, this code identifies the protocols that the device uses as defined by the specification of the device class.

  • If this field is reset to zero, the device does not use a class-specific protocol on this interface.
  • If this field is set to FFH, the device uses a vendor-specific protocol for this interface.

Definition at line 99 of file std_descriptors.h.

uint8_t bInterfaceSubClass

Subclass code (assigned by the USB-IF).
These codes are qualified by the value of the bInterfaceClass field.

  • If the bInterfaceClass field is reset to zero, this field must also be reset to zero.
  • If the bInterfaceClass field is not set to FFH, all values are reserved for assignment by the USB-IF.

Definition at line 98 of file std_descriptors.h.


The documentation for this struct was generated from the following file: