USB 2.0 与 OTG 规范及开发指南
7.9 电压分布 ................................................................................................................................. 60
第八章 协议层 ...................................................................................................................................... 63
8.1 位定序 ..................................................................................................................................... 63
8.2 同步字段 .................................................................................................................................. 63
8.3 包字段格式 .............................................................................................................................. 63
8.3.1 包标识符字段 ............................................................................................................... 63
8.3.2 地址字段 ....................................................................................................................... 64
8.3.3 帧号字段 ....................................................................................................................... 65
8.3.4 数据字段 ....................................................................................................................... 65
8.3.5 循环冗余校验 ............................................................................................................... 65
8.4 包格式 ...................................................................................................................................... 66
8.4.1 标记包 ........................................................................................................................... 66
8.4.2 帧开始(SOF,Start-of-Frame)包 .............................................................................. 66
8.4.3 数据包 ........................................................................................................................... 66
8.4.4 握手包 ........................................................................................................................... 67
8.4.5 握手回答(Handshake Response) ............................................................................. 67
8.5 事务格式 .................................................................................................................................. 68
8.5.1 批处理事务 ................................................................................................................... 68
8.5.2 控制传送 ....................................................................................................................... 70
8.5.3 中断事务 ....................................................................................................................... 72
8.5.4 同步事务 ....................................................................................................................... 72
8.6 数据切换同步和重试 .............................................................................................................. 73
8.6.1 通过建立标记初始化 .................................................................................................. 73
8.6.2 成功的数据事务 ........................................................................................................... 73
8.6.3 损坏,或者不被接受数据 ........................................................................................... 74
8.6.4 损坏的 ACK 握手 ......................................................................................................... 74
8.6.5 低速事务 ....................................................................................................................... 75
8.7 错误检测和恢复 ...................................................................................................................... 76
8.7.1 包错误种类 ................................................................................................................... 76
8.7.2 总线周转(Turn-around)时间 ................................................................................... 76
8.7.3 错误的 EOP................................................................................................................... 77
8.7.4 超时干扰(Babble)和活动性丧失(Loss of Activity)的恢复 .............................. 77
第九章 USB设备架构 ....................................................................................................................... 78
9.1 USB 设备状态 ...................................................................................................................... 78
9.1.1 外置的设备状态 ........................................................................................................ 78
9.1.2 Bus Enumeration 总线标号 ....................................................................................... 80
9.2 通用 USB 设备操作(Generic USB Device Operations) ....................................................... 81
9.2.1 动态插接与拔开 ........................................................................................................ 81
9.2.2 地址分配 .................................................................................................................... 81
9.2.3 配置 ............................................................................................................................ 81
9.2.4 数据传送 .................................................................................................................... 82
9.2.5 电源管理 .................................................................................................................... 82
9.2.6 请求处理 .................................................................................................................... 82
9.2.7 请求错误 .................................................................................................................... 83
9.3 USB 设备请求 ...................................................................................................................... 83
9.3.1 bmRequestType 域 ..................................................................................................... 84
9.3.2 bRequest 域 ................................................................................................................ 84
9.3.3 wValue 域 ................................................................................................................... 84
9.3.4 wIndex 域 ................................................................................................................... 84
9.3.5 wLength 域 ................................................................................................................. 84
9.4 标准设惫请求 ....................................................................................................................... 84
9.4.1 清除特性(ClearFeature()) .......................................................................................... 86
9.4.2 取得配置(GetConfiguration()) ................................................................................... 86