void HAL_USBPortPower(int bus, int port, int state)
Entry | |
---|---|
bus | Bus/interface number to query |
port | Port number to modify |
state | Power state to set: |
0 = Power off | |
1 = Power on |
Exit | |
---|---|
- |
This is an internal call for OS use only and should not be used by user software.
Used to control the power state of the indicated port.
The availability of this call is indicated via the flag bits of HAL_USBControllerInfo and requires that the HAL has a fixed mapping between the root hub controller number and the physical connectors on the circuit board, for example where the power is controlled via GPIO lines for those connectors. A root hub controller on a PCI card does not match these criteria as the card could be (re)moved, requiring the HAL to carry detection code that is better placed in the controller driver.