mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
make more clear on the flow proposal.
This commit is contained in:
parent
e81faeadd5
commit
387a4ab5f4
1 changed files with 14 additions and 11 deletions
25
Usb.cpp
25
Usb.cpp
|
@ -575,19 +575,22 @@ uint8_t USB::DefaultAddressing(uint8_t parent, uint8_t port, bool lowspeed) {
|
||||||
* 5: pUsb->setEpInfoEntry(bAddress, 1, epInfo), exit on fail
|
* 5: pUsb->setEpInfoEntry(bAddress, 1, epInfo), exit on fail
|
||||||
* 6: while (configurations) {
|
* 6: while (configurations) {
|
||||||
* for(each configuration) {
|
* for(each configuration) {
|
||||||
* 6a: Ask device if it likes configuration. Returns 0 on OK.
|
* for (each driver) {
|
||||||
* If successful, the driver configured device.
|
* 6a: Ask device if it likes configuration. Returns 0 on OK.
|
||||||
* The driver now owns the endpoints, and takes over managing them.
|
* If successful, the driver configured device.
|
||||||
* The following will need codes:
|
* The driver now owns the endpoints, and takes over managing them.
|
||||||
* Everything went well, instance consumed, exit with success.
|
* The following will need codes:
|
||||||
* Instance already in use, ignore it, try next driver.
|
* Everything went well, instance consumed, exit with success.
|
||||||
* Not a supported device, ignore it, try next driver.
|
* Instance already in use, ignore it, try next driver.
|
||||||
* Not a supported configuration for this device, ignore it, try next driver.
|
* Not a supported device, ignore it, try next driver.
|
||||||
* Could not configure device, fatal, exit with fail.
|
* Not a supported configuration for this device, ignore it, try next driver.
|
||||||
*
|
* Could not configure device, fatal, exit with fail.
|
||||||
|
* }
|
||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* 7: if we get here, no driver likes the device, so exit failure.
|
* 7: for(each driver) {
|
||||||
|
* 7a: Ask device if it knows this VID/PID. Acts exactly like 6a, but using VID/PID
|
||||||
|
* 8: if we get here, no driver likes the device plugged in, so exit failure.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
uint8_t USB::Configuring(uint8_t parent, uint8_t port, bool lowspeed) {
|
uint8_t USB::Configuring(uint8_t parent, uint8_t port, bool lowspeed) {
|
||||||
|
|
Loading…
Reference in a new issue