#include <hub.h>
Data Fields | |
uint8_t | current_requirement |
Maximum current requirements of the Hub Controller electronics in mA. | |
uint8_t | devices_removable [32] |
Indicates if a port has a removable device attached. | |
uint16_t | hub_characteristics |
D1. | |
uint8_t | ports_count |
Number of downstream ports that this hub supports. | |
uint8_t | pwr_on_2_good_time |
Time (in 2ms intervals) from the time the power-on sequence begins on a port until power is good on that port. |
For more information see Universal Serial Bus Specification Revision 1.1 chapter 11.16.2
Definition at line 86 of file hub.h.
uint8_t devices_removable[32] |
Indicates if a port has a removable device attached.
This field is reported on byte-granularity. Within a byte, if no port exists for a given location, the field representing the port characteristics returns 0. Bit value definition: 0B - Device is removable 1B - Device is non-removable This is a bitmap corresponding to the individual ports on the hub: Bit 0: Reserved for future use Bit 1: Port 1 Bit 2: Port 2 .... Bit n: Port n (implementation-dependent, up to a maximum of 255 ports).
uint16_t hub_characteristics |
D1.
..D0: Logical Power Switching Mode 00: Ganged power switching (all ports power at once) 01: Individual port power switching 1X: Reserved. Used only on 1.0 compliant hubs that implement no power switching. D2: Identifies a Compound Device 0: Hub is not part of a compound device 1: Hub is part of a compound device D4...D3: Over-current Protection Mode 00: Global Over-current Protection. The hub reports over-current as a summation of all ports current draw, without a breakdown of individual port over-current status. 01: Individual Port Over-current Protection. The hub reports over-current on a per-port basis. Each port has an over-current indicator. 1X: No Over-current Protection. This option is allowed only for bus-powered hubs that do not implement over-current protection. D15...D5: Reserved
uint8_t pwr_on_2_good_time |