Table A.6. Constants used for device speed
Definition | Value | Description |
---|---|---|
USB_DEVICE_SPEED_SLOW | 0x00 | Device speed is 1.5Mbit/s. |
USB_DEVICE_SPEED_NORMAL | 0x01 | Device speed is 12Mbit/s. |
USB_DEVICE_SPEED_MAX | 0x01 | Maximal device speed (USB 1.1) |
Table A.7. Constants used for device states
Definition | Value | Description |
---|---|---|
USB_DEVICE_STATE_UNPLUGGED | 0x00 | Device has been registered at USB module. |
USB_DEVICE_STATE_ATTACHED | 0x01 | Device is attached to the USB but not powered. |
USB_DEVICE_STATE_POWERED | 0x02 | Device is attached and powered but has not been reset. The USB Hub module will detect that a new device has been connected. Of course there may be the case that more than one device connected at the same time. In this case the Hub module is responsible to switch exactly one device to the bus per time by configuring the according hub. |
USB_DEVICE_STATE_DEFAULT | 0x03 | Device is attached and powered and has been reset. It is responding at the default address. To set this address you must send a SET_ADDRESS standard device request to the device at the default address on the default pipe. |
USB_DEVICE_STATE_ADDRESS | 0x04 | Device is attached and powered, has been reset and has got its own unique number. But device has not been configured. This can be done sending configuration on the default pipe. |
USB_DEVICE_STATE_CONFIGURED | 0x05 | Device is attached and powered, has been reset, has got its own unique number and has been configured. The host program's can now use the device. |
USB_DEVICE_STATE_SUSPENDED | 0x40 | This overlays actual device state. Device must be powered. The device enters this state if it hasn't seen an idle USB (that means also frame token are not sent!) for 3ms. |