[][src]Struct lpc55s6x_pac::usbhsh::portsc1::W

pub struct W { /* fields omitted */ }

Value to write to the register

Methods

impl W[src]

pub fn reset_value() -> W[src]

Reset value of the register

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self[src]

Writes raw bits to the register

pub fn ccs(&mut self) -> _CCSW[src]

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

pub fn csc(&mut self) -> _CSCW[src]

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

pub fn ped(&mut self) -> _PEDW[src]

Bit 2 - Port Enabled/Disabled.

pub fn pedc(&mut self) -> _PEDCW[src]

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

pub fn oca(&mut self) -> _OCAW[src]

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

pub fn occ(&mut self) -> _OCCW[src]

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

pub fn fpr(&mut self) -> _FPRW[src]

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

pub fn susp(&mut self) -> _SUSPW[src]

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

pub fn pr(&mut self) -> _PRW[src]

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

pub fn sus_l1(&mut self) -> _SUS_L1W[src]

Bit 9 - Suspend using L1 0b = Suspend using L2 1b = Suspend using L1 When this bit is set to a 1 and a non-zero value is specified in the Device Address field, the host controller will generate an LPM Token to enter the L1 state whenever software writes a one to the Suspend bit, as well as L1 exit timing during any device or host-initiated resume.

pub fn pp(&mut self) -> _PPW[src]

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

pub fn pic(&mut self) -> _PICW[src]

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.

pub fn ptc(&mut self) -> _PTCW[src]

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.

pub fn pspd(&mut self) -> _PSPDW[src]

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

pub fn woo(&mut self) -> _WOOW[src]

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.

pub fn sus_stat(&mut self) -> _SUS_STATW[src]

Bits 23:24 - These two bits are used by software to determine whether the most recent L1 suspend request was successful: 00b: Success-state transition was successful (ACK) 01b: Not Yet - Device was unable to enter the L1 state at this time (NYET) 10b: Not supported - Device does not support the L1 state (STALL) 11b: Timeout/Error - Device failed to respond or an error occurred.

pub fn dev_add(&mut self) -> _DEV_ADDW[src]

Bits 25:31 - Device Address for LPM tokens.

Auto Trait Implementations

impl Send for W

impl Sync for W

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self