7 | DEV | | Device mode |
0 | The USB controller is operating on the OTG A side of the cable. |
1 | The USB controller is operating on the OTG B side of the cable. |
| Only valid while a session is in progress. |
6 | FSDEV | | Full-Speed Device Detected |
0 | A full-speed Device has not been detected on the port. |
1 | A full-speed Device has been detected on the port. |
5 | LSDEV | | Low-Speed Device Detected |
0 | A low-speed Device has not been detected on the port. |
1 | A low-speed Device has been detected on the port. |
4-3 | VBUS | 0-3h | These read-only bits encode the current VBus level as follows: |
0 | Below Session End. VBUS is detected as under 0.5 V. |
1h | Above Session End, below AValid. VBUS is detected as above 0.5 V and under 1.5 V. |
2h | Above AValid, below VBusValid. VBUS is detected as above 1.5 V and below 4.75 V. |
3h | Above VBusValid. VBUS is detected as above 4.75 V. |
2 | HOSTMODE | | This read-only bit is set when the USB controller is acting as a Host. |
0 | The USB controller is acting as a Device. |
1 | The USB controller is acting as a Host. |
| Only valid while a session is in progress. |
1 | HOSTREQ | | When set, the USB controller will initiate the Host Negotiation when Suspend mode is entered. It is cleared when Host Negotiation is completed. |
0 | No effect |
1 | Initiates the Host Negotiation when SUSPENDmode is entered. |
0 | SESSION | | Session Start/End When operating as a Host: |
0 | When cleared by software, this bit ends a session. |
1 | When set by software, this bit starts a session. |
| |
| When operating as a Device: |
0 | The USB controller has ended a session. When the USB controller is in SUSPEND mode, this bit may be cleared by software to perform a software disconnect. |
1 | The USB controller has started a session. When set by software, the Session Request Protocol is initiated. |
Clearing this bit when the USB controller is not suspended results in undefined behavior. |