pub struct R(_);
Expand description

Register PORTSC1 reader

Implementations

Bit 0 - Current Connect Status: Logic 1 indicates a device is present on the port.

Bit 1 - Connect Status Change: Logic 1 means that the value of CCS has changed.

Bit 2 - Port Enabled/Disabled.

Bit 3 - Port Enabled/Disabled Change: Logic 1 means that the value of PED has changed.

Bit 4 - Over-current active: Logic 1 means that this port has an over-current condition.

Bit 5 - Over-current change: Logic 1 means that the value of OCA has changed.

Bit 6 - Force Port Resume: Logic 1 means resume (K-state) detected or driven on the port.

Bit 7 - Suspend: Logic 1 means port is in the suspend state.

Bit 8 - Port Reset: Logic 1 means the port is in the reset state.

Bits 10:11 - Line Status: This field reflects the current logical levels of the DP (bit 11) and DM (bit 10) signal lines.

Bit 12 - Port Power: The function of this bit depends on the value of the Port Power Control (PPC) bit in the HCSPARAMS register.

Bits 14:15 - Port Indicator Control : Writing to this field has no effect if the P_INDICATOR bit in the HCSPARAMS register is logic 0.

Bits 16:19 - Port Test Control: A non-zero value indicates that the port is operating in the test mode as indicated by the value.

Bits 20:21 - Port Speed: 00b: Low-speed 01b: Full-speed 10b: High-speed 11b: Reserved.

Bit 22 - Wake on overcurrent enable: Writing this bit to a one enables the port to be sensitive to overcurrent conditions as wake-up events.

Methods from Deref<Target = R<PORTSC1_SPEC>>

Reads raw bits from register.

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.