fuchsia.hardware.usb.descriptor

Added: HEAD

STRUCTS

Usb2Payload

在 fuchsia.hardware.usb.descriptor/hub.fidl 中定义

字段类型说明默认
device_removable array<uint8, 4> 无默认应用
port_pwr_ctrl_mask array<uint8, 4> 无默认应用

Usb3Payload

在 fuchsia.hardware.usb.descriptor/hub.fidl 中定义

字段类型说明默认
b_hub_hdr_dec_lat uint8 无默认应用
w_hub_delay uint16 无默认应用
device_removable uint16 无默认应用

UsbDeviceDescriptor

在 fuchsia.hardware.usb.descriptor/usb.fidl 中定义

字段类型说明默认
b_length uint8 无默认应用
b_descriptor_type uint8 无默认应用
bcd_usb uint16 无默认应用
b_device_class uint8 无默认应用
b_device_sub_class uint8 无默认应用
b_device_protocol uint8 无默认应用
b_max_packet_size0 uint8 无默认应用
id_vendor uint16 无默认应用
id_product uint16 无默认应用
bcd_device uint16 无默认应用
i_manufacturer uint8 无默认应用
i_product uint8 无默认应用
i_serial_number uint8 无默认应用
b_num_configurations uint8 无默认应用

UsbEndpointDescriptor

在 fuchsia.hardware.usb.descriptor/usb.fidl 中定义

字段类型说明默认
b_length uint8 无默认应用
b_descriptor_type uint8 无默认应用
b_endpoint_address uint8 无默认应用
bm_attributes uint8 无默认应用
w_max_packet_size uint16 无默认应用
b_interval uint8 无默认应用

UsbHubDescriptor

在 fuchsia.hardware.usb.descriptor/hub.fidl 中定义

字段类型说明默认
b_desc_length uint8 无默认应用
b_descriptor_type uint8 无默认应用
b_nbr_ports uint8 无默认应用
w_hub_characteristics uint16 无默认应用
b_power_on2_pwr_good uint8 无默认应用
b_hub_contr_current uint8 无默认应用
payload UsbHubDescriptorPayload 无默认应用

UsbInterfaceDescriptor

在 fuchsia.hardware.usb.descriptor/usb.fidl 中定义

字段类型说明默认
b_length uint8 无默认应用
b_descriptor_type uint8 无默认应用
b_interface_number uint8 无默认应用
b_alternate_setting uint8 无默认应用
b_num_endpoints uint8 无默认应用
b_interface_class uint8 无默认应用
b_interface_sub_class uint8 无默认应用
b_interface_protocol uint8 无默认应用
i_interface uint8 无默认应用

UsbPortStatus

在 fuchsia.hardware.usb.descriptor/hub.fidl 中定义

字段类型说明默认
w_port_status uint16 无默认应用
w_port_change uint16 无默认应用

UsbSetup

在 fuchsia.hardware.usb.descriptor/usb.fidl 中定义

字段类型说明默认
bm_request_type uint8 无默认应用
b_request uint8 无默认应用
w_value uint16 无默认应用
w_index uint16 无默认应用
w_length uint16 无默认应用

UsbSsEpCompDescriptor

在 fuchsia.hardware.usb.descriptor/usb.fidl 中定义

字段类型说明默认
b_length uint8 无默认应用
b_descriptor_type uint8 无默认应用
b_max_burst uint8 无默认应用
bm_attributes uint8 无默认应用
w_bytes_per_interval uint16 无默认应用

枚举

AdbFastbootProtocol flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/usb.fidl 中定义

USB ADB/Fastboot 协议代码(适用于 VendorSubclass.ADB_FASTBOOT 0x42)。

名称值说明
1
3
238

AudioAcDescriptorSubtype flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/audio.fidl 中定义

USB 音频类 AC 接口描述符子类型。

名称值说明
1
2
3
4
5
6
7
8
238

AudioAsDescriptorSubtype flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/audio.fidl 中定义

USB 音频串流类专用 AS 接口描述符子类型。

名称值说明
1
2
3
238

AudioEndpointControlSelector flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/audio.fidl 中定义

USB 音频类端点控制选择器。

名称值说明
1
2
238

AudioEpDescriptorSubtype flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/audio.fidl 中定义

USB 音频类端点描述符子类型。

名称值说明
1
238

AudioFeatureUnitControlSelector flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/audio.fidl 中定义

USB 音频类功能单元控制选择器。

名称值说明
1
2
3
4
5
6
7
8
9
10
238

AudioFormatTag flexible

类型:uint16

在 fuchsia.hardware.usb.descriptor/audio.fidl 中定义

USB 音频串流 wFormatTag 值(USB 音频数据格式 A.1 部分)。

名称值说明
0
1
2
3
4
5
4096
4097
4098
8192
8193
8194
8195
8196
8197
8198
61166

AudioFormatType flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/audio.fidl 中定义

USB 音频串流格式类型代码。

名称值说明
0
1
2
3
238

AudioProcessType flexible

类型:uint16

在 fuchsia.hardware.usb.descriptor/audio.fidl 中定义

USB 音频类处理单元处理类型。

名称值说明
1
2
3
4
5
6
61166

AudioRequest flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/audio.fidl 中定义

USB 音频类设置请求代码。

名称值说明
1
2
3
4
5
129
130
131
132
133
255
238

AudioSubclass flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/audio.fidl 中定义

USB 音频子类代码。

名称值说明
1
2
3
238

AudioTerminalControlSelector flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/audio.fidl 中定义

USB 音频类终端控制选择器。

名称值说明
1
238

AudioTerminalType flexible

类型:uint16

在 fuchsia.hardware.usb.descriptor/audio.fidl 中定义

USB 音频类终端类型。

名称值说明
256
257
511
512
513
514
515
516
517
518
768
769
770
771
772
773
774
775
1024
1025
1026
1027
1028
1029
1280
1281
1282
1283
1536
1537
1538
1539
1540
1541
1542
1543
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
61166

CdcDescriptorSubtype flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/cdc.fidl 中定义

CDC 类专用描述符子类型。

名称值说明
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
238

CdcNotification flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/cdc.fidl 中定义

USB 通信设备类通知代码。

名称值说明
0
1
32
42
238

CdcRequest 灵活

类型:uint8

在 fuchsia.hardware.usb.descriptor/cdc.fidl 中定义

USB 通信设备类设置请求代码。

名称值说明
0
1
32
33
34
35
64
65
66
67
68
238

CdcSubclass flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/cdc.fidl 中定义

通信接口类的 CDC 子类。

名称值说明
1
2
3
4
5
6
7
8
9
10
11
12
13
238

DescriptorType flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/usb.fidl 中定义

USB 2.0 规范表 9-5 中定义的标准 USB 描述符类型。

名称值说明
1
2
3
4
5
6
7
8
9
10
11
15
16
33
34
35
36
37
41
42
48
49
238

EndpointDirection strict

类型:uint8

在 fuchsia.hardware.usb.descriptor/usb.fidl 中定义

端点传输方向(从设备到主机的 IN,或从主机到设备的 OUT)在端点地址 (bEndpointAddress) 的第 7 位中编码,如 USB 2.0 规范第 9.6.6 节中所定义。

名称值说明
0
128

EndpointType strict

类型:uint8

在 fuchsia.hardware.usb.descriptor/usb.fidl 中定义

端点传输类型,如 USB 2.0 规范第 9.6.6 节中所定义。

名称值说明
0
1
2
3

FeatureSelector flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/usb.fidl 中定义

USB 功能选择器。

名称值说明
0
1
2
238

HidProtocol 灵活

类型:uint8

在 fuchsia.hardware.usb.descriptor/hid.fidl 中定义

USB HID 协议代码。

名称值说明
1
2
238

HidRequest 灵活

类型:uint8

在 fuchsia.hardware.usb.descriptor/hid.fidl 中定义

USB 人机接口设备类设置请求代码。

名称值说明
1
2
3
9
10
11
238

HidSubclass 灵活

类型:uint8

在 fuchsia.hardware.usb.descriptor/hid.fidl 中定义

USB HID 子类代码。

名称值说明
1
238

MidiEndpointControlSelector 灵活

类型:uint8

在 fuchsia.hardware.usb.descriptor/audio.fidl 中定义

USB MIDI 端点控制选择器。

名称值说明
1
238

MidiEpDescriptorSubtype flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/audio.fidl 中定义

USB MIDI 流式传输类专用 MS 端点描述符子类型。

名称值说明
1
238

MidiJackType flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/audio.fidl 中定义

USB MIDI 输入和输出插孔类型。

名称值说明
1
2
238

MidiMsDescriptorSubtype flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/audio.fidl 中定义

USB MIDI 流式传输类专用 MS 接口描述符子类型。

名称值说明
1
2
3
4
238

MiscProtocol flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/usb.fidl 中定义

USB 杂项协议代码。

名称值说明
1
238

MiscSubclass flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/usb.fidl 中定义

USB 杂项子类代码。

名称值说明
4
238

MscProtocol flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/msc.fidl 中定义

USB MSC 协议代码。

名称值说明
80
238

灵活的 MscRequest

类型:uint8

在 fuchsia.hardware.usb.descriptor/msc.fidl 中定义

USB 大容量存储类设置请求代码。

名称值说明
254
255
238

MscSubclass flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/msc.fidl 中定义

USB MSC 子类代码。

名称值说明
6
238

RequestRecipient flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/usb.fidl 中定义

设置请求接收方(bmRequestType 的位 [4:0]),如 USB 2.0 规范表 9-2 中所定义。

名称值说明
0
1
2
3
238

RequestType flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/usb.fidl 中定义

设置请求类型(bmRequestType 的位 [6:5]),如 USB 2.0 规范表 9-2 中所定义。

名称值说明
0
32
64
238

StandardRequest flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/usb.fidl 中定义

USB 2.0 规范表 9-4 中定义的标准设置请求代码。

名称值说明
0
1
3
5
6
7
8
9
10
11
12
238

SynchronizationType strict

类型:uint8

在 fuchsia.hardware.usb.descriptor/usb.fidl 中定义

端点同步类型(bmAttributes 的位 [3:2]),如 USB 2.0 规范第 9.6.6 节中所定义。

名称值说明
0
1
2
3

灵活选择 TestModeSelector

类型:uint8

在 fuchsia.hardware.usb.descriptor/usb.fidl 中定义

USB 2.0 规范表 9-7 中定义的标准 USB 2.0 测试模式选择器。

名称值说明
1
2
3
4
5
238

TestVendorProtocol flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/usb.fidl 中定义

USB 测试/供应商协议代码(适用于 VendorSubclass.VENDOR 0xff)。

名称值说明
1
2
3
238

UsageType flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/usb.fidl 中定义

端点使用类型(bmAttributes 的位 [5:4]),如 USB 2.0 规范第 9.6.6 节中所定义。

名称值说明
0
1
2
238

灵活使用 UsbClass

类型:uint8

在 fuchsia.hardware.usb.descriptor/usb.fidl 中定义

USB 2.0 规范表 9-8 和表 9-12(以及 USB-IF 定义的类代码注册表)中定义的标准 USB 类代码。 架构说明:驱动程序维护者应在 match/switch 语句中明确处理可扩展类代码和供应商协议的 .is_unknown() 回退路径,以保持与新型 USB 硬件和未来规范新增内容的网络兼容性。

名称值说明
0
1
2
3
5
6
7
8
9
10
11
13
14
15
16
17
18
220
224
239
254
255
238

通过将 0xee 指定为 @unknown UNDEFINED,合法的物理 USB 设备类描述符不可能与我们的哨兵值发生冲突。这样,FIDL 就可以安全地解析有效的供应商专用设备 (0xff),同时将任何意外或新发明的类代码作为 is_unknown() == true 妥善处理。

UsbMode strict

类型:uint32

在 fuchsia.hardware.usb.descriptor/usb.fidl 中定义

USB 操作模式。

名称值说明
0
1
2
3

UsbSpeed strict

类型:uint32

在 fuchsia.hardware.usb.descriptor/usb.fidl 中定义

名称值说明
0
1
2
3
4
5

VendorSubclass flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/usb.fidl 中定义

USB 供应商子类代码。

名称值说明
66
67
255
238

VideoEpDescriptorSubtype flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/video.fidl 中定义

USB 视频类端点描述符子类型。

名称值说明
1
2
3
238

VideoRequest flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/video.fidl 中定义

USB 视频类设置请求代码。

名称值说明
1
17
129
130
131
132
133
134
135
145
146
147
148
151
238

VideoSubclass flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/video.fidl 中定义

USB 视频子类代码。

名称值说明
1
2
3
238

VideoVcDescriptorSubtype flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/video.fidl 中定义

USB 视频类 VC 接口描述符子类型。

名称值说明
1
2
3
4
5
6
7
238

VideoVsControlSelector flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/video.fidl 中定义

USB 视频类流式传输接口控制选择器。

名称值说明
1
2
3
4
5
6
7
8
9
238

VideoVsDescriptorSubtype flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/video.fidl 中定义

USB 视频类 VS 接口描述符子类型。

名称值说明
1
2
3
4
5
6
7
10
12
13
16
17
18
19
20
21
22
23
24
238

VsockProtocol flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/usb.fidl 中定义

USB Vsock 协议代码(适用于 VendorSubclass.VSOCK_BRIDGE 0x43)。

名称值说明
0
238

WirelessProtocol flexible

类型:uint8

在 fuchsia.hardware.usb.descriptor/usb.fidl 中定义

USB 无线协议代码。

名称值说明
3
238

WirelessSubclass 灵活

类型:uint8

在 fuchsia.hardware.usb.descriptor/usb.fidl 中定义

USB 无线子类代码。

名称值说明
1
238

UNIONS

UsbHubDescriptorPayload strict

在 fuchsia.hardware.usb.descriptor/hub.fidl 中定义

序数变体类型说明
hs Usb2Payload
ss Usb3Payload

常量

名称值类型说明
AUDIO_3D_ENABLE_CONTROL 1 uint8
AUDIO_ATTACK_TIME 5 uint8
AUDIO_CHORUS_DEPTH_CONTROL 4 uint8
AUDIO_CHORUS_LEVEL_CONTROL 2 uint8
AUDIO_CHORUS_RATE_CONTROL 3 uint8
AUDIO_CH_ENABLE_CONTROL 1 uint8
AUDIO_COMPRESSION_RATE_CONTROL 2 uint8
AUDIO_DP_ENABLE_CONTROL 1 uint8
AUDIO_DP_MODE_SELECT_CONTROL 2 uint8
AUDIO_DR_ENABLE_CONTROL 1 uint8
AUDIO_FU_BMA_AUTOMATIC_GAIN 64 uint16
AUDIO_FU_BMA_BASS 4 uint16
AUDIO_FU_BMA_BASS_BOOST 256 uint16
AUDIO_FU_BMA_DELAY 128 uint16
AUDIO_FU_BMA_GRAPHIC_EQUALIZER 32 uint16
AUDIO_FU_BMA_LOUDNESS 512 uint16
AUDIO_FU_BMA_MID 8 uint16
AUDIO_FU_BMA_MUTE 1 uint16

USB 音频类功能单元控制支持位掩码 (bmaControls)。

AUDIO_FU_BMA_TREBLE 16 uint16
AUDIO_FU_BMA_VOLUME 2 uint16
AUDIO_MAXAMPL_CONTROL 3 uint8
AUDIO_RELEASE_TIME 6 uint8
AUDIO_REVERB_FEEDBACK_CONTROL 4 uint8
AUDIO_REVERB_LEVEL_CONTROL 2 uint8
AUDIO_REVERB_TIME_CONTROL 3 uint8
AUDIO_RV_ENABLE_CONTROL 1 uint8
AUDIO_SPACIOUSNESS_CONTROL 3 uint8
AUDIO_THRESHOLD_CONTROL 4 uint8
AUDIO_UD_ENABLE_CONTROL 1 uint8

USB 音频类处理和扩展单元控制选择器。

AUDIO_UD_MODE_SELECT_CONTROL 2 uint8
AUDIO_XU_ENABLE_CONTROL 1 uint8
CDC_PACKET_TYPE_ALL_MULTICAST 2 uint16
CDC_PACKET_TYPE_BROADCAST 8 uint16
CDC_PACKET_TYPE_DIRECTED 4 uint16
CDC_PACKET_TYPE_MULTICAST 16 uint16
CDC_PACKET_TYPE_PROMISCUOUS 1 uint16

USB CDC 以太网数据包过滤模式位。

CONFIGURATION_REMOTE_WAKEUP 32 uint8

配置属性 (bm_attributes)。

CONFIGURATION_RESERVED_7 128 uint8
CONFIGURATION_SELF_POWERED 64 uint8
DEVICE_STATUS_REMOTE_WAKEUP 2 uint16
DEVICE_STATUS_SELF_POWERED 1 uint16

GET_STATUS 为设备返回的设备状态位。

ENDPOINT_DIRECTION_MASK 128 uint8

用于提取 EndpointDirection 的 bEndpointAddress(或 bmRequestType)的第 7 位的掩码。

ENDPOINT_MAX_PACKET_SIZE_MASK 2047 uint16

用于提取最大数据包大小的 wMaxPacketSize 的位 [10:0] 的掩码。

ENDPOINT_NUMBER_MASK 15 uint8

用于提取端点编号的 bEndpointAddress 的位 [3:0] 的掩码。

ENDPOINT_STATUS_HALTED 1 uint16

GET_STATUS 为端点返回的端点状态位。

ENDPOINT_TYPE_MASK 3 uint8

bmAttributes 的位 [1:0] 的掩码,用于提取 EndpointType。

REQUEST_RECIPIENT_MASK 31 uint8

用于提取 RequestRecipient 的 bmRequestType 位 [4:0] 的掩码。

REQUEST_TYPE_MASK 96 uint8

bmRequestType 的位 [6:5] 的掩码,用于提取 RequestType。

SS_EP_COMP_ISOCH_COMP_MASK 128 uint8

SuperSpeed 端点伴随描述符 (SSP_ISO_COMP) 中 bmAttributes 的第 7 位的掩码。

SS_EP_COMP_ISOCH_MULT_MASK 3 uint8

SuperSpeed 端点配套描述符 (Mult) 中 bmAttributes 的位 [1:0] 的掩码。

STANDARD_DEVICE_REQUEST_IN 128 uint8
STANDARD_DEVICE_REQUEST_OUT 0 uint8

标准设备请求(OUT/IN)的组合 bmRequestType。

STANDARD_ENDPOINT_REQUEST_IN 130 uint8
STANDARD_ENDPOINT_REQUEST_OUT 2 uint8

标准端点请求(出站/入站)的合并 bmRequestType。

STANDARD_INTERFACE_REQUEST_IN 129 uint8
STANDARD_INTERFACE_REQUEST_OUT 1 uint8

标准接口请求(输出/输入)的组合 bmRequestType。

SYNCHRONIZATION_TYPE_MASK 12 uint8

bmAttributes 的位 [3:2] 的掩码,用于提取 SynchronizationType。

USAGE_TYPE_MASK 48 uint8

用于提取 UsageType 的 bmAttributes 位 [5:4] 的掩码。

USB_C_BH_PORT_RESET 32 uint16
USB_C_PORT_CONFIG_ERROR 128 uint16
USB_C_PORT_CONNECTION 1 uint16
USB_C_PORT_ENABLE 2 uint16
USB_C_PORT_HIGH_SPEED 1024 uint16
USB_C_PORT_INDICATOR_CONTROL 4096 uint16
USB_C_PORT_LOW_SPEED 512 uint16
USB_C_PORT_OVER_CURRENT 8 uint16
USB_C_PORT_POWER 256 uint16
USB_C_PORT_RESET 16 uint16
USB_C_PORT_SUSPEND 4 uint16
USB_C_PORT_TEST_MODE 2048 uint16
USB_FEATURE_BH_PORT_RESET 28 uint16
USB_FEATURE_C_BH_PORT_RESET 29 uint16
USB_FEATURE_C_HUB_LOCAL_POWER 0 uint16
USB_FEATURE_C_HUB_OVER_CURRENT 1 uint16
USB_FEATURE_C_PORT_CONFIG_ERROR 26 uint16
USB_FEATURE_C_PORT_CONNECTION 16 uint16
USB_FEATURE_C_PORT_ENABLE 17 uint16
USB_FEATURE_C_PORT_OVER_CURRENT 19 uint16
USB_FEATURE_C_PORT_RESET 20 uint16
USB_FEATURE_C_PORT_SUSPEND 18 uint16
USB_FEATURE_FORCE_LINKPM_ACCEPT 30 uint16
USB_FEATURE_PORT_CONNECTION 0 uint16
USB_FEATURE_PORT_ENABLE 1 uint16
USB_FEATURE_PORT_INDICATOR 22 uint16
USB_FEATURE_PORT_LOW_SPEED 9 uint16
USB_FEATURE_PORT_OVER_CURRENT 3 uint16
USB_FEATURE_PORT_POWER 8 uint16
USB_FEATURE_PORT_REMOTE_WAKE_MASK 27 uint16
USB_FEATURE_PORT_RESET 4 uint16
USB_FEATURE_PORT_SUSPEND 2 uint16
USB_FEATURE_PORT_TEST 21 uint16
USB_FEATURE_PORT_U1_TIMEOUT 23 uint16
USB_FEATURE_PORT_U2_TIMEOUT 24 uint16
USB_HUB_SET_DEPTH 12 uint8
USB_PORT_CONNECTION 1 uint16
USB_PORT_ENABLE 2 uint16
USB_PORT_HIGH_SPEED 1024 uint16
USB_PORT_INDICATOR_CONTROL 4096 uint16
USB_PORT_LOW_SPEED 512 uint16
USB_PORT_OVER_CURRENT 8 uint16
USB_PORT_POWER 256 uint16
USB_PORT_RESET 16 uint16
USB_PORT_SUSPEND 4 uint16
USB_PORT_TEST_MODE 2048 uint16
USB_RECIP_HUB 32 uint8
USB_RECIP_PORT 35 uint8
VIDEO_BM_HINT_COMP_QUALITY 8 uint16
VIDEO_BM_HINT_COMP_WINDOW_SIZE 16 uint16
VIDEO_BM_HINT_FRAME_INTERVAL 1 uint16

USB Video Class 流协商 bmHint 位。

VIDEO_BM_HINT_KEY_FRAME_RATE 2 uint16
VIDEO_BM_HINT_P_FRAME_RATE 4 uint16
VIDEO_GUID_LENGTH 16 uint8

USB 视频类格式 GUID 长度。

VIDEO_VS_PAYLOAD_HEADER_EOF 2 uint8
VIDEO_VS_PAYLOAD_HEADER_EOH 128 uint8
VIDEO_VS_PAYLOAD_HEADER_ERR 64 uint8
VIDEO_VS_PAYLOAD_HEADER_FID 1 uint8

USB 视频类载荷标头 bmHeaderInfo 位。

VIDEO_VS_PAYLOAD_HEADER_PTS 4 uint8
VIDEO_VS_PAYLOAD_HEADER_RES 16 uint8
VIDEO_VS_PAYLOAD_HEADER_SCR 8 uint8
VIDEO_VS_PAYLOAD_HEADER_STI 32 uint8