USB device state management. More...
Enumerations | |
enum | usb_device_state_t { ATTACHED, POWERED, DEFAULT, ADDRESSED, CONFIGURED, SUSPENDED } |
USB device states. More... | |
Functions | |
void | set_device_state (enum usb_device_state_t state) |
Set the USB device state. More... | |
enum usb_device_state_t | get_device_state () |
Get the current USB device state. | |
USB device state management.
As defined by §9.1 of the USB 2.0 specification, the device can be in a number of pre-defined states. This state is not usually managed by the microcontroller hardware, so needs to be managed in software.
enum usb_device_state_t |
USB device states.
void set_device_state | ( | enum usb_device_state_t | state | ) |