CS_CHANNEL_DESCRIPTOR描述符
2023-04-10
45
0
CS_CHANNEL_DESCRIPTOR描述符结构体定义如下:
#pragma pack(1)
typedef struct {
UCHAR bMethod;
UCHAR bMethodVariant;
} CS_METHOD_AND_VARIANT;
typedef struct {
UCHAR bLength;
UCHAR bDescriptorType;
UCHAR bChannelID;
UCHAR bmAttributes;
UCHAR bRecipient;
UCHAR bRecipientAlt;
UCHAR bRecipientLogicalUnit;
CS_METHOD_AND_VARIANT methodAndVariant[0];
} CS_CHANNEL_DESCRIPTOR;
#pragma pack()
其中描述符类型固定为0x22。
#define CS_DESCRIPTOR_TYPE_CHANNEL 0x22
其中CS_METHOD_AND_VARIANT指定了方法类型。一其有以下几种:
#define CSM_BASIC 1 // Microsoft
#define CSM_DTCP 2 // Intel
#define CSM_OCPS 3 // Philips
#define CSM_ELLIPTIC_CURVE 4
文档定义如下:
CSM | Method ID | Comments |
---|---|---|
CSM_UNDEFINED | 0x00 | |
Basic Authentication Protocol (CSM-1) | 0x01 | Deprecated. Do not use. |
USB Digital Transmission Content Protection (CSM-2) | 0x02 | |
Open Copy Protection System (CSM-3) | 0x03 | Deprecated. Do not use. |
Elliptic Curve Content Protection Protocol (CSM-4) | 0x04 | Deprecated. Do not use. |
High-bandwidth Digital Content Protection System (CSM-5) | 0x05 |
HID人机交互QQ群:564808376
UAC音频QQ群:218581009
UVC相机QQ群:331552032
BOT&UASP大容量存储QQ群:258159197
STC-USB单片机QQ群:315457461
USB技术交流QQ群2:580684376
USB技术交流QQ群:952873936