[][src]Struct lpc55s6x_pac::usbhsh::portmode::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 id0(&mut self) -> _ID0W[src]

Bit 0 - Port 0 ID pin value.

pub fn id0_en(&mut self) -> _ID0_ENW[src]

Bit 8 - Port 0 ID pin pull-up enable.

pub fn dev_enable(&mut self) -> _DEV_ENABLEW[src]

Bit 16 - If this bit is set to one, one of the ports will behave as a USB device.

pub fn sw_ctrl_pdcom(&mut self) -> _SW_CTRL_PDCOMW[src]

Bit 18 - This bit indicates if the PHY power-down input is controlled by software or by hardware.

pub fn sw_pdcom(&mut self) -> _SW_PDCOMW[src]

Bit 19 - This bit is only used when SW_CTRL_PDCOM is set to 1b.

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