USB-CDC-ECM以太网控制模型设备
+ -

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设备描述符,确保主机正确识别和管理网络设备接口

0 篇笔记 写笔记

ECM 类特定码
本节列出了通信设备类(Communications Device Class)、通信接口类(Communications Interface Class)和数据接口类(Data Interface Class)的代码,包括子类和协议。这些值用于标准设备描述符的 DeviceClass、bInterf......
关注公众号
  • HID人机交互
  • Linux&USB
  • UAC音频
  • CDC
  • TYPE-C
  • USB规范
  • USB大容量存储
  • USB百科
  • USB周边
  • UVC摄像头
  • Windows系统USB
  • 音视频博客
  • 取消
    感谢您的支持,我会继续努力的!
    扫码支持
    扫码打赏,你说多少就多少

    打开支付宝扫一扫,即可进行扫码打赏哦

    您的支持,是我们前进的动力!