USB : rename the data flow function name

This commit is contained in:
zeroway
2018-09-05 10:21:50 +08:00
parent 0b8bd3fcc5
commit 3e2800bf81
3 changed files with 5 additions and 3 deletions

View File

@ -157,6 +157,8 @@ Slave端(开发板),进入下载模式后枚举成MassStroage设备,循环等待
写流程(usb_write)
- Host发送cbw,其中cdb里包含写命令,并发送要写的数据,Slave返回csw
下图中的所有术语是按主机的角度说明的
![work flow](./sequenceDiagram.png)
Libusb编程核心步骤

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.9 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

@ -5,12 +5,12 @@ participant "Slave(rockusb)" as slave
host -> slave : send_cbw
note right : usb_read
slave -> host : send_data
slave -> host : send_csw
slave -> host : recv_data
slave -> host : recv_csw
host -> slave : send_cbw
note right : usb_write
host -> slave : send_data
slave -> host : send_csw
slave -> host : recv_csw
@enduml