ECM 类特定码
2025-07-10
0
0
本节列出了通信设备类(Communications Device Class)、通信接口类(Communications Interface Class)和数据接口类(Data Interface Class)的代码,包括子类和协议。这些值用于标准设备描述符的 DeviceClass、bInterfaceClass、bInterfaceSubClass 和 bInterfaceProtocol 字段(详见 [USB2.0] 第9章)。
通信类代码(Communications Class Code)
- 代码值:0x02
通信类子类代码(Communications Class Subclass Code)
代码 | 子类 |
---|---|
06h | Ethernet Control Model(以太网控制模型) |
通信类协议代码(Communications Class Protocol Code)
- 通信类协议定义见 [USBCDC1.2]。
代码 | 协议说明 |
---|---|
00h | No class specific protocol required(不需要类特定协议) |
说明
- 如果一个通信类接口有多个备用设置(alternate settings),所有备用设置的 bInterfaceClass、bInterfaceSubclass 和 bInterfaceProtocol 代码必须相同。
总结
- bInterfaceClass:通信类代码,0x02
- bInterfaceSubClass:06h,表示以太网控制模型
- bInterfaceProtocol:00h,表示不需要类特定协议
- 这些代码用于USB设备描述符,确保主机正确识别和管理网络设备接口