STRUCTS
Usb2Payload
Defined in fuchsia.hardware.usb.descriptor/hub.fidl
| Field | Type | Description | Default |
|---|---|---|---|
device_removable |
array<uint8, 4>
|
No default | |
port_pwr_ctrl_mask |
array<uint8, 4>
|
No default |
Usb3Payload
Defined in fuchsia.hardware.usb.descriptor/hub.fidl
| Field | Type | Description | Default |
|---|---|---|---|
b_hub_hdr_dec_lat |
uint8
|
No default | |
w_hub_delay |
uint16
|
No default | |
device_removable |
uint16
|
No default |
UsbDeviceDescriptor
Defined in fuchsia.hardware.usb.descriptor/usb.fidl
| Field | Type | Description | Default |
|---|---|---|---|
b_length |
uint8
|
No default | |
b_descriptor_type |
uint8
|
No default | |
bcd_usb |
uint16
|
No default | |
b_device_class |
uint8
|
No default | |
b_device_sub_class |
uint8
|
No default | |
b_device_protocol |
uint8
|
No default | |
b_max_packet_size0 |
uint8
|
No default | |
id_vendor |
uint16
|
No default | |
id_product |
uint16
|
No default | |
bcd_device |
uint16
|
No default | |
i_manufacturer |
uint8
|
No default | |
i_product |
uint8
|
No default | |
i_serial_number |
uint8
|
No default | |
b_num_configurations |
uint8
|
No default |
UsbEndpointDescriptor
Defined in fuchsia.hardware.usb.descriptor/usb.fidl
| Field | Type | Description | Default |
|---|---|---|---|
b_length |
uint8
|
No default | |
b_descriptor_type |
uint8
|
No default | |
b_endpoint_address |
uint8
|
No default | |
bm_attributes |
uint8
|
No default | |
w_max_packet_size |
uint16
|
No default | |
b_interval |
uint8
|
No default |
UsbHubDescriptor
Defined in fuchsia.hardware.usb.descriptor/hub.fidl
| Field | Type | Description | Default |
|---|---|---|---|
b_desc_length |
uint8
|
No default | |
b_descriptor_type |
uint8
|
No default | |
b_nbr_ports |
uint8
|
No default | |
w_hub_characteristics |
uint16
|
No default | |
b_power_on2_pwr_good |
uint8
|
No default | |
b_hub_contr_current |
uint8
|
No default | |
payload |
UsbHubDescriptorPayload
|
No default |
UsbInterfaceDescriptor
Defined in fuchsia.hardware.usb.descriptor/usb.fidl
| Field | Type | Description | Default |
|---|---|---|---|
b_length |
uint8
|
No default | |
b_descriptor_type |
uint8
|
No default | |
b_interface_number |
uint8
|
No default | |
b_alternate_setting |
uint8
|
No default | |
b_num_endpoints |
uint8
|
No default | |
b_interface_class |
uint8
|
No default | |
b_interface_sub_class |
uint8
|
No default | |
b_interface_protocol |
uint8
|
No default | |
i_interface |
uint8
|
No default |
UsbPortStatus
Defined in fuchsia.hardware.usb.descriptor/hub.fidl
| Field | Type | Description | Default |
|---|---|---|---|
w_port_status |
uint16
|
No default | |
w_port_change |
uint16
|
No default |
UsbSetup
Defined in fuchsia.hardware.usb.descriptor/usb.fidl
| Field | Type | Description | Default |
|---|---|---|---|
bm_request_type |
uint8
|
No default | |
b_request |
uint8
|
No default | |
w_value |
uint16
|
No default | |
w_index |
uint16
|
No default | |
w_length |
uint16
|
No default |
UsbSsEpCompDescriptor
Defined in fuchsia.hardware.usb.descriptor/usb.fidl
| Field | Type | Description | Default |
|---|---|---|---|
b_length |
uint8
|
No default | |
b_descriptor_type |
uint8
|
No default | |
b_max_burst |
uint8
|
No default | |
bm_attributes |
uint8
|
No default | |
w_bytes_per_interval |
uint16
|
No default |
ENUMS
AdbFastbootProtocol flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/usb.fidl
USB ADB/Fastboot protocol codes (for VendorSubclass.ADB_FASTBOOT 0x42).
| Name | Value | Description |
|---|---|---|
ADB |
1 |
|
FASTBOOT |
3 |
|
UNDEFINED |
238 |
AudioAcDescriptorSubtype flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/audio.fidl
USB Audio Class AC interface descriptor subtypes.
| Name | Value | Description |
|---|---|---|
HEADER |
1 |
|
INPUT_TERMINAL |
2 |
|
OUTPUT_TERMINAL |
3 |
|
MIXER_UNIT |
4 |
|
SELECTOR_UNIT |
5 |
|
FEATURE_UNIT |
6 |
|
PROCESSING_UNIT |
7 |
|
EXTENSION_UNIT |
8 |
|
UNDEFINED |
238 |
AudioAsDescriptorSubtype flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/audio.fidl
USB Audio Streaming class-specific AS interface descriptor subtypes.
| Name | Value | Description |
|---|---|---|
GENERAL |
1 |
|
FORMAT_TYPE |
2 |
|
FORMAT_SPECIFIC |
3 |
|
UNDEFINED |
238 |
AudioEndpointControlSelector flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/audio.fidl
USB Audio Class endpoint control selectors.
| Name | Value | Description |
|---|---|---|
SAMPLING_FREQ |
1 |
|
PITCH |
2 |
|
UNDEFINED |
238 |
AudioEpDescriptorSubtype flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/audio.fidl
USB Audio Class endpoint descriptor subtypes.
| Name | Value | Description |
|---|---|---|
GENERAL |
1 |
|
UNDEFINED |
238 |
AudioFeatureUnitControlSelector flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/audio.fidl
USB Audio Class feature unit control selectors.
| Name | Value | Description |
|---|---|---|
MUTE |
1 |
|
VOLUME |
2 |
|
BASS |
3 |
|
MID |
4 |
|
TREBLE |
5 |
|
GRAPHIC_EQUALIZER |
6 |
|
AUTOMATIC_GAIN |
7 |
|
DELAY |
8 |
|
BASS_BOOST |
9 |
|
LOUDNESS |
10 |
|
UNDEFINED |
238 |
AudioFormatTag flexible
Type: uint16
Defined in fuchsia.hardware.usb.descriptor/audio.fidl
USB Audio Streaming wFormatTag values (USB Audio Data Formats Section A.1).
| Name | Value | Description |
|---|---|---|
TYPE_I_UNDEFINED |
0 |
|
PCM |
1 |
|
PCM8 |
2 |
|
IEEE_FLOAT |
3 |
|
ALAW |
4 |
|
MULAW |
5 |
|
TYPE_II_UNDEFINED |
4096 |
|
MPEG |
4097 |
|
AC3 |
4098 |
|
TYPE_III_UNDEFINED |
8192 |
|
IEC1937_AC3 |
8193 |
|
IEC1937_MPEG1_L1 |
8194 |
|
IEC1937_MPEG1_L23 |
8195 |
|
IEC1937_MPEG2_EXT |
8196 |
|
IEC1937_MPEG2_L1_LS |
8197 |
|
IEC1937_MPEG2_L23_LS |
8198 |
|
UNDEFINED |
61166 |
AudioFormatType flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/audio.fidl
USB Audio Streaming format type codes.
| Name | Value | Description |
|---|---|---|
FORMAT_TYPE_UNDEFINED |
0 |
|
TYPE_I |
1 |
|
TYPE_II |
2 |
|
TYPE_III |
3 |
|
UNDEFINED |
238 |
AudioProcessType flexible
Type: uint16
Defined in fuchsia.hardware.usb.descriptor/audio.fidl
USB Audio Class processing unit process types.
| Name | Value | Description |
|---|---|---|
UP_DOWN_MIX |
1 |
|
DOLBY_PROLOGIC |
2 |
|
STEREO_EXTENDER_3D |
3 |
|
REVERBERATION |
4 |
|
CHORUS |
5 |
|
DYN_RANGE_COMP |
6 |
|
UNDEFINED |
61166 |
AudioRequest flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/audio.fidl
USB Audio Class setup request codes.
| Name | Value | Description |
|---|---|---|
SET_CUR |
1 |
|
SET_MIN |
2 |
|
SET_MAX |
3 |
|
SET_RES |
4 |
|
SET_MEM |
5 |
|
GET_CUR |
129 |
|
GET_MIN |
130 |
|
GET_MAX |
131 |
|
GET_RES |
132 |
|
GET_MEM |
133 |
|
GET_STAT |
255 |
|
UNDEFINED |
238 |
AudioSubclass flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/audio.fidl
USB Audio subclass codes.
| Name | Value | Description |
|---|---|---|
CONTROL |
1 |
|
STREAMING |
2 |
|
MIDI_STREAMING |
3 |
|
UNDEFINED |
238 |
AudioTerminalControlSelector flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/audio.fidl
USB Audio Class terminal control selectors.
| Name | Value | Description |
|---|---|---|
COPY_PROTECT_CONTROL |
1 |
|
UNDEFINED |
238 |
AudioTerminalType flexible
Type: uint16
Defined in fuchsia.hardware.usb.descriptor/audio.fidl
USB Audio Class terminal types.
| Name | Value | Description |
|---|---|---|
USB_UNDEFINED |
256 |
|
USB_STREAMING |
257 |
|
USB_VENDOR |
511 |
|
INPUT_UNDEFINED |
512 |
|
MICROPHONE |
513 |
|
DESKTOP_MICROPHONE |
514 |
|
PERSONAL_MICROPHONE |
515 |
|
OMNI_DIRECTIONAL_MICROPHONE |
516 |
|
MICROPHONE_ARRAY |
517 |
|
PROCESSING_MICROPHONE_ARRAY |
518 |
|
OUTPUT_UNDEFINED |
768 |
|
SPEAKER |
769 |
|
HEADPHONES |
770 |
|
HEAD_MOUNTED_DISPLAY_AUDIO |
771 |
|
DESKTOP_SPEAKER |
772 |
|
ROOM_SPEAKER |
773 |
|
COMMUNICATION_SPEAKER |
774 |
|
LOW_FREQ_EFFECTS_SPEAKER |
775 |
|
BIDIRECTIONAL_UNDEFINED |
1024 |
|
HANDSET |
1025 |
|
HEADSET |
1026 |
|
SPEAKERPHONE |
1027 |
|
ECHO_SUPPRESSING_SPEAKERPHONE |
1028 |
|
ECHO_CANCELING_SPEAKERPHONE |
1029 |
|
TELEPHONY_UNDEFINED |
1280 |
|
PHONE_LINE |
1281 |
|
TELEPHONE |
1282 |
|
DOWN_LINE_PHONE |
1283 |
|
EXTERNAL_UNDEFINED |
1536 |
|
ANALOG_CONNECTOR |
1537 |
|
DIGITAL_AUDIO_INTERFACE |
1538 |
|
LINE_CONNECTOR |
1539 |
|
LEGACY_AUDIO_CONNECTOR |
1540 |
|
SPDIF_INTERFACE |
1541 |
|
DA_STREAM_1394 |
1542 |
|
DV_STREAM_SOUNDTRACK_1394 |
1543 |
|
EMBEDDED_UNDEFINED |
1792 |
|
LEVEL_CALIBRATION_NOISE_SOURCE |
1793 |
|
EQUALIZATION_NOISE |
1794 |
|
CD_PLAYER |
1795 |
|
DAT |
1796 |
|
DCC |
1797 |
|
MINI_DISK |
1798 |
|
ANALOG_TAPE |
1799 |
|
PHONOGRAPH |
1800 |
|
VCR_AUDIO |
1801 |
|
VIDEO_DISK_AUDIO |
1802 |
|
DVD_AUDIO |
1803 |
|
TV_TUNER_AUDIO |
1804 |
|
SATELLITE_RECEIVER_AUDIO |
1805 |
|
CABLE_TUNER_AUDIO |
1806 |
|
DSS_AUDIO |
1807 |
|
RADIO_RECEIVER |
1808 |
|
RADIO_TRANSMITTER |
1809 |
|
MULTI_TRACK_RECORDER |
1810 |
|
SYNTHESIZER |
1811 |
|
UNDEFINED |
61166 |
CdcDescriptorSubtype flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/cdc.fidl
CDC class-specific descriptor subtypes.
| Name | Value | Description |
|---|---|---|
HEADER |
0 |
|
CALL_MGMT |
1 |
|
ABSTRACT_CTRL_MGMT |
2 |
|
DIRECT_LINE_MGMT |
3 |
|
TELEPHONE_RINGER |
4 |
|
TELEPHONE_CALL_REPORTING |
5 |
|
UNION |
6 |
|
COUNTRY_SELECTION |
7 |
|
TELEPHONE_OP_MODES |
8 |
|
USB_TERMINAL |
9 |
|
NETWORK_CHANNEL |
10 |
|
PROTOCOL_UNIT |
11 |
|
EXTENSION_UNIT |
12 |
|
MULTI_CHANNEL_MGMT |
13 |
|
CAPI_CTRL_MGMT |
14 |
|
ETHERNET |
15 |
|
ATM_NETWORKING |
16 |
|
WIRELESS_HANDSET_CTRL |
17 |
|
MOBILE_DIRECT_LINE |
18 |
|
MDLM_DETAIL |
19 |
|
DEVICE_MGMT |
20 |
|
OBEX |
21 |
|
COMMAND_SET |
22 |
|
COMMAND_SET_DETAIL |
23 |
|
TELEPHONE_CTRL |
24 |
|
OBEX_SERVICE_ID |
25 |
|
NCM |
26 |
|
UNDEFINED |
238 |
CdcNotification flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/cdc.fidl
USB Communications Device Class notification codes.
| Name | Value | Description |
|---|---|---|
NETWORK_CONNECTION |
0 |
|
RESPONSE_AVAILABLE |
1 |
|
SERIAL_STATE |
32 |
|
CONNECTION_SPEED_CHANGE |
42 |
|
UNDEFINED |
238 |
CdcRequest flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/cdc.fidl
USB Communications Device Class setup request codes.
| Name | Value | Description |
|---|---|---|
SEND_ENCAPSULATED_COMMAND |
0 |
|
GET_ENCAPSULATED_RESPONSE |
1 |
|
SET_LINE_CODING |
32 |
|
GET_LINE_CODING |
33 |
|
SET_CONTROL_LINE_STATE |
34 |
|
SEND_BREAK |
35 |
|
SET_ETHERNET_MULTICAST_FILTERS |
64 |
|
SET_ETHERNET_PM_PATTERN_FILTER |
65 |
|
GET_ETHERNET_PM_PATTERN_FILTER |
66 |
|
SET_ETHERNET_PACKET_FILTER |
67 |
|
GET_ETHERNET_STATISTIC |
68 |
|
UNDEFINED |
238 |
CdcSubclass flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/cdc.fidl
CDC subclasses for the Communications Interface Class.
| Name | Value | Description |
|---|---|---|
DIRECT_LINE |
1 |
|
ABSTRACT |
2 |
|
TELEPHONE |
3 |
|
MULTI_CHANNEL |
4 |
|
CAPI |
5 |
|
ETHERNET |
6 |
|
ATM |
7 |
|
WIRELESS_HANDSET |
8 |
|
DEVICE_MGMT |
9 |
|
MOBILE_DIRECT |
10 |
|
OBEX |
11 |
|
ETHERNET_EMU |
12 |
|
NETWORK_CTRL |
13 |
|
UNDEFINED |
238 |
DescriptorType flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/usb.fidl
Standard USB descriptor types as defined in USB 2.0 specification Table 9-5.
| Name | Value | Description |
|---|---|---|
DEVICE |
1 |
|
CONFIGURATION |
2 |
|
STRING |
3 |
|
INTERFACE |
4 |
|
ENDPOINT |
5 |
|
DEVICE_QUALIFIER |
6 |
|
OTHER_SPEED_CONFIGURATION |
7 |
|
INTERFACE_POWER |
8 |
|
OTG |
9 |
|
DEBUG |
10 |
|
INTERFACE_ASSOCIATION |
11 |
|
BOS |
15 |
|
DEVICE_CAPABILITY |
16 |
|
HID |
33 |
|
HID_REPORT |
34 |
|
HID_PHYSICAL |
35 |
|
CS_INTERFACE |
36 |
|
CS_ENDPOINT |
37 |
|
HUB |
41 |
|
HUB_SUPER_SPEED |
42 |
|
SS_EP_COMPANION |
48 |
|
SS_ISOCH_EP_COMPANION |
49 |
|
UNDEFINED |
238 |
EndpointDirection strict
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/usb.fidl
Endpoint transfer direction (IN from device to host, or OUT from host to device)
encoded in bit 7 of the endpoint address (bEndpointAddress), as defined in
USB 2.0 specification section 9.6.6.
| Name | Value | Description |
|---|---|---|
OUT |
0 |
|
IN |
128 |
EndpointType strict
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/usb.fidl
Endpoint transfer type as defined in USB 2.0 specification section 9.6.6.
| Name | Value | Description |
|---|---|---|
CONTROL |
0 |
|
ISOCHRONOUS |
1 |
|
BULK |
2 |
|
INTERRUPT |
3 |
FeatureSelector flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/usb.fidl
USB feature selectors.
| Name | Value | Description |
|---|---|---|
ENDPOINT_HALT |
0 |
|
DEVICE_REMOTE_WAKEUP |
1 |
|
DEVICE_TEST_MODE |
2 |
|
UNDEFINED |
238 |
HidProtocol flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/hid.fidl
USB HID protocol codes.
| Name | Value | Description |
|---|---|---|
KBD |
1 |
|
MOUSE |
2 |
|
UNDEFINED |
238 |
HidRequest flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/hid.fidl
USB Human Interface Device Class setup request codes.
| Name | Value | Description |
|---|---|---|
GET_REPORT |
1 |
|
GET_IDLE |
2 |
|
GET_PROTOCOL |
3 |
|
SET_REPORT |
9 |
|
SET_IDLE |
10 |
|
SET_PROTOCOL |
11 |
|
UNDEFINED |
238 |
HidSubclass flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/hid.fidl
USB HID subclass codes.
| Name | Value | Description |
|---|---|---|
BOOT |
1 |
|
UNDEFINED |
238 |
MidiEndpointControlSelector flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/audio.fidl
USB MIDI endpoint control selectors.
| Name | Value | Description |
|---|---|---|
ASSOCIATION_CONTROL |
1 |
|
UNDEFINED |
238 |
MidiEpDescriptorSubtype flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/audio.fidl
USB MIDI Streaming class-specific MS endpoint descriptor subtypes.
| Name | Value | Description |
|---|---|---|
GENERAL |
1 |
|
UNDEFINED |
238 |
MidiJackType flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/audio.fidl
USB MIDI IN and OUT jack types.
| Name | Value | Description |
|---|---|---|
EMBEDDED |
1 |
|
INTERNAL |
2 |
|
UNDEFINED |
238 |
MidiMsDescriptorSubtype flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/audio.fidl
USB MIDI Streaming class-specific MS interface descriptor subtypes.
| Name | Value | Description |
|---|---|---|
HEADER |
1 |
|
IN_JACK |
2 |
|
OUT_JACK |
3 |
|
ELEMENT |
4 |
|
UNDEFINED |
238 |
MiscProtocol flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/usb.fidl
USB Misc protocol codes.
| Name | Value | Description |
|---|---|---|
RNDIS_ETHERNET |
1 |
|
UNDEFINED |
238 |
MiscSubclass flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/usb.fidl
USB Misc subclass codes.
| Name | Value | Description |
|---|---|---|
RNDIS |
4 |
|
UNDEFINED |
238 |
MscProtocol flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/msc.fidl
USB MSC protocol codes.
| Name | Value | Description |
|---|---|---|
BULK_ONLY |
80 |
|
UNDEFINED |
238 |
MscRequest flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/msc.fidl
USB Mass Storage Class setup request codes.
| Name | Value | Description |
|---|---|---|
GET_MAX_LUN |
254 |
|
RESET |
255 |
|
UNDEFINED |
238 |
MscSubclass flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/msc.fidl
USB MSC subclass codes.
| Name | Value | Description |
|---|---|---|
SCSI |
6 |
|
UNDEFINED |
238 |
RequestRecipient flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/usb.fidl
Setup request recipient (bits [4:0] of bmRequestType), as defined in USB 2.0 specification Table 9-2.
| Name | Value | Description |
|---|---|---|
DEVICE |
0 |
|
INTERFACE |
1 |
|
ENDPOINT |
2 |
|
OTHER |
3 |
|
UNDEFINED |
238 |
RequestType flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/usb.fidl
Setup request type (bits [6:5] of bmRequestType), as defined in USB 2.0 specification Table 9-2.
| Name | Value | Description |
|---|---|---|
STANDARD |
0 |
|
CLASS |
32 |
|
VENDOR |
64 |
|
UNDEFINED |
238 |
StandardRequest flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/usb.fidl
Standard setup request codes as defined in USB 2.0 specification Table 9-4.
| Name | Value | Description |
|---|---|---|
GET_STATUS |
0 |
|
CLEAR_FEATURE |
1 |
|
SET_FEATURE |
3 |
|
SET_ADDRESS |
5 |
|
GET_DESCRIPTOR |
6 |
|
SET_DESCRIPTOR |
7 |
|
GET_CONFIGURATION |
8 |
|
SET_CONFIGURATION |
9 |
|
GET_INTERFACE |
10 |
|
SET_INTERFACE |
11 |
|
SYNCH_FRAME |
12 |
|
UNDEFINED |
238 |
SynchronizationType strict
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/usb.fidl
Endpoint synchronization type (bits [3:2] of bmAttributes), as defined in USB 2.0 specification section 9.6.6.
| Name | Value | Description |
|---|---|---|
NO_SYNCHRONIZATION |
0 |
|
ASYNCHRONOUS |
1 |
|
ADAPTIVE |
2 |
|
SYNCHRONOUS |
3 |
TestModeSelector flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/usb.fidl
Standard USB 2.0 test mode selectors as defined in USB 2.0 specification Table 9-7.
| Name | Value | Description |
|---|---|---|
TEST_J |
1 |
|
TEST_K |
2 |
|
TEST_SE0_NAK |
3 |
|
TEST_PACKET |
4 |
|
TEST_FORCE_ENABLE |
5 |
|
UNDEFINED |
238 |
TestVendorProtocol flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/usb.fidl
USB Test/Vendor protocol codes (for VendorSubclass.VENDOR 0xff).
| Name | Value | Description |
|---|---|---|
TEST_FTDI |
1 |
|
TEST_HID_ONE_ENDPOINT |
2 |
|
TEST_HID_TWO_ENDPOINT |
3 |
|
UNDEFINED |
238 |
UsageType flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/usb.fidl
Endpoint usage type (bits [5:4] of bmAttributes), as defined in USB 2.0 specification section 9.6.6.
| Name | Value | Description |
|---|---|---|
DATA |
0 |
|
FEEDBACK |
1 |
|
IMPLICIT_FEEDBACK |
2 |
|
UNDEFINED |
238 |
UsbClass flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/usb.fidl
Standard USB class codes as defined in USB 2.0 specification Table 9-8 and Table 9-12 (and the USB-IF Defined Class Codes registry).
Architectural Note: Driver maintainers should explicitly handle .is_unknown() fallback
paths in match/switch statements for extensible class codes and vendor protocols, preserving
wire compatibility with novel USB hardware and future specification additions.
| Name | Value | Description |
|---|---|---|
PER_INTERFACE |
0 |
|
AUDIO |
1 |
|
COMM |
2 |
|
HID |
3 |
|
PHYSICAL |
5 |
|
IMAGING |
6 |
|
PRINTER |
7 |
|
MSC |
8 |
|
HUB |
9 |
|
CDC |
10 |
|
CCID |
11 |
|
SECURITY |
13 |
|
VIDEO |
14 |
|
HEALTHCARE |
15 |
|
AUDIO_VIDEO |
16 |
|
BILLBOARD |
17 |
|
TYPE_C_BRIDGE |
18 |
|
DIAGNOSTIC |
220 |
|
WIRELESS |
224 |
|
MISC |
239 |
|
APPLICATION_SPECIFIC |
254 |
|
VENDOR |
255 |
|
UNDEFINED |
238 |
By designating 0xee as @unknown UNDEFINED, it is impossible for a legitimate physical USB device class descriptor to collide with our sentinel. This allows FIDL to safely parse valid vendor-specific devices (0xff) while gracefully handling any unexpected or newly invented class codes as is_unknown() == true. |
UsbMode strict
Type: uint32
Defined in fuchsia.hardware.usb.descriptor/usb.fidl
USB operational modes.
| Name | Value | Description |
|---|---|---|
NONE |
0 |
|
HOST |
1 |
|
PERIPHERAL |
2 |
|
OTG |
3 |
UsbSpeed strict
Type: uint32
Defined in fuchsia.hardware.usb.descriptor/usb.fidl
| Name | Value | Description |
|---|---|---|
UNDEFINED |
0 |
|
FULL |
1 |
|
LOW |
2 |
|
HIGH |
3 |
|
SUPER |
4 |
|
ENHANCED_SUPER |
5 |
VendorSubclass flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/usb.fidl
USB Vendor subclass codes.
| Name | Value | Description |
|---|---|---|
ADB_FASTBOOT |
66 |
|
VSOCK_BRIDGE |
67 |
|
VENDOR |
255 |
|
UNDEFINED |
238 |
VideoEpDescriptorSubtype flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/video.fidl
USB Video Class endpoint descriptor subtypes.
| Name | Value | Description |
|---|---|---|
GENERAL |
1 |
|
ENDPOINT |
2 |
|
INTERRUPT |
3 |
|
UNDEFINED |
238 |
VideoRequest flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/video.fidl
USB Video Class setup request codes.
| Name | Value | Description |
|---|---|---|
SET_CUR |
1 |
|
SET_CUR_ALL |
17 |
|
GET_CUR |
129 |
|
GET_MIN |
130 |
|
GET_MAX |
131 |
|
GET_RES |
132 |
|
GET_LEN |
133 |
|
GET_INFO |
134 |
|
GET_DEF |
135 |
|
GET_CUR_ALL |
145 |
|
GET_MIN_ALL |
146 |
|
GET_MAX_ALL |
147 |
|
GET_RES_ALL |
148 |
|
GET_DEF_ALL |
151 |
|
UNDEFINED |
238 |
VideoSubclass flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/video.fidl
USB Video subclass codes.
| Name | Value | Description |
|---|---|---|
CONTROL |
1 |
|
STREAMING |
2 |
|
INTERFACE_COLLECTION |
3 |
|
UNDEFINED |
238 |
VideoVcDescriptorSubtype flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/video.fidl
USB Video Class VC interface descriptor subtypes.
| Name | Value | Description |
|---|---|---|
HEADER |
1 |
|
INPUT_TERMINAL |
2 |
|
OUTPUT_TERMINAL |
3 |
|
SELECTOR_UNIT |
4 |
|
PROCESSING_UNIT |
5 |
|
EXTENSION_UNIT |
6 |
|
ENCODING_UNIT |
7 |
|
UNDEFINED |
238 |
VideoVsControlSelector flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/video.fidl
USB Video Class streaming interface control selectors.
| Name | Value | Description |
|---|---|---|
PROBE_CONTROL |
1 |
|
COMMIT_CONTROL |
2 |
|
STILL_PROBE_CONTROL |
3 |
|
STILL_COMMIT_CONTROL |
4 |
|
STILL_IMAGE_TRIGGER_CONTROL |
5 |
|
STREAM_ERROR_CODE_CONTROL |
6 |
|
GENERATE_KEY_FRAME_CONTROL |
7 |
|
UPDATE_FRAME_SEGMENT_CONTROL |
8 |
|
SYNCH_DELAY_CONTROL |
9 |
|
UNDEFINED |
238 |
VideoVsDescriptorSubtype flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/video.fidl
USB Video Class VS interface descriptor subtypes.
| Name | Value | Description |
|---|---|---|
INPUT_HEADER |
1 |
|
OUTPUT_HEADER |
2 |
|
STILL_IMAGE_FRAME |
3 |
|
FORMAT_UNCOMPRESSED |
4 |
|
FRAME_UNCOMPRESSED |
5 |
|
FORMAT_MJPEG |
6 |
|
FRAME_MJPEG |
7 |
|
FORMAT_MPEG2TS |
10 |
|
FORMAT_DV |
12 |
|
COLORFORMAT |
13 |
|
FORMAT_FRAME_BASED |
16 |
|
FRAME_FRAME_BASED |
17 |
|
FORMAT_STREAM_BASED |
18 |
|
FORMAT_H264 |
19 |
|
FRAME_H264 |
20 |
|
FORMAT_H264_SIMULCAST |
21 |
|
FORMAT_VP8 |
22 |
|
FRAME_VP8 |
23 |
|
FORMAT_VP8_SIMULCAST |
24 |
|
UNDEFINED |
238 |
VsockProtocol flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/usb.fidl
USB Vsock protocol codes (for VendorSubclass.VSOCK_BRIDGE 0x43).
| Name | Value | Description |
|---|---|---|
VSOCK_BRIDGE |
0 |
|
UNDEFINED |
238 |
WirelessProtocol flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/usb.fidl
USB Wireless protocol codes.
| Name | Value | Description |
|---|---|---|
MISC_RNDIS |
3 |
|
UNDEFINED |
238 |
WirelessSubclass flexible
Type: uint8
Defined in fuchsia.hardware.usb.descriptor/usb.fidl
USB Wireless subclass codes.
| Name | Value | Description |
|---|---|---|
MISC |
1 |
|
UNDEFINED |
238 |
UNIONS
UsbHubDescriptorPayload strict
Defined in fuchsia.hardware.usb.descriptor/hub.fidl
| Ordinal | Variant | Type | Description |
|---|---|---|---|
1 |
hs |
Usb2Payload
|
|
2 |
ss |
Usb3Payload
|