pub struct W(_);
Expand description

Register PORTSC1 writer

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.

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.

Writes raw bits to the register.

Methods from Deref<Target = W<PORTSC1_SPEC>>

Writes raw bits to the register.

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

Mutably 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.