[][src]Struct lpc55s6x_pac::usbphy::usb1_vbus_detect_set::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 vbusvalid_thresh(&mut self) -> _VBUSVALID_THRESHW[src]

Bits 0:2 - Sets the threshold for the VBUSVALID comparator

pub fn vbus_override_en(&mut self) -> _VBUS_OVERRIDE_ENW[src]

Bit 3 - VBUS detect signal override enable

pub fn sessend_override(&mut self) -> _SESSEND_OVERRIDEW[src]

Bit 4 - Override value for SESSEND The bit field provides the value for USB1_VBUS_DET_STAT[0] if USB_VBUS_DETECT[3] is set to value 1'b1

pub fn bvalid_override(&mut self) -> _BVALID_OVERRIDEW[src]

Bit 5 - Override value for B-Device Session Valid The bit field provides the value for USB1_VBUS_DET_STAT[1] if USB_VBUS_DETECT[3] is set to value 1'b1

pub fn avalid_override(&mut self) -> _AVALID_OVERRIDEW[src]

Bit 6 - Override value for A-Device Session Valid The bit field provides the value for USB1_VBUS_DET_STAT[2] if USB_VBUS_DETECT[3] is set to value 1'b1

pub fn vbusvalid_override(&mut self) -> _VBUSVALID_OVERRIDEW[src]

Bit 7 - Override value for VBUS_VALID signal sent to USB controller The bit field provides the value for VBUS_VALID reported to the USB controller if the value of USB1_VBUS_DETECT[3] is set to 1'b1

pub fn vbusvalid_sel(&mut self) -> _VBUSVALID_SELW[src]

Bit 8 - Selects the source of the VBUS_VALID signal reported to the USB controller This is one of the bit fields that selects the source of the VBUS_VALID signal reported to the USB controller

pub fn vbus_source_sel(&mut self) -> _VBUS_SOURCE_SELW[src]

Bits 9:10 - Selects the source of the VBUS_VALID signal reported to the USB controller This is one of the bit fields that selects the source of the VBUS_VALID signal reported to the USB controller

pub fn vbusvalid_to_sessvalid(&mut self) -> _VBUSVALID_TO_SESSVALIDW[src]

Bit 18 - Selects the comparator used for VBUS_VALID This bit field controls the comparator used to report the VBUS_VALID results in USB1_VBUS_DETECT[3] between the VBUS_VALID comparator and the Session Valid comparator

pub fn pwrup_cmps(&mut self) -> _PWRUP_CMPSW[src]

Bit 20 - Enables the VBUS_VALID comparator Powers up the comparator used for the VBUS_VALID detector

pub fn discharge_vbus(&mut self) -> _DISCHARGE_VBUSW[src]

Bit 26 - Controls VBUS discharge resistor This bit field controls a nominal 22kohm resistor between the USB1_VBUS pin and ground

pub fn en_charger_resistor(&mut self) -> _EN_CHARGER_RESISTORW[src]

Bit 31 - Enables resistors used for an older method of resistive battery charger detection

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