[][src]Type Definition lpc55s6x_pac::usbphy::usb1_vbus_detect_set::W

type W = W<u32, USB1_VBUS_DETECT_SET>;

Writer for register USB1_VBUS_DETECT_SET

Methods

impl W[src]

pub fn vbusvalid_thresh(&mut self) -> VBUSVALID_THRESH_W[src]

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

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

Bit 3 - VBUS detect signal override enable

pub fn sessend_override(&mut self) -> SESSEND_OVERRIDE_W[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_OVERRIDE_W[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_OVERRIDE_W[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_OVERRIDE_W[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_SEL_W[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_SEL_W[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 id_override_en(&mut self) -> ID_OVERRIDE_EN_W[src]

Bit 11 - Enable ID override using the register field. This bit is only used if EXT_ID_OVERRIDE_EN = 1'b0.

pub fn id_override(&mut self) -> ID_OVERRIDE_W[src]

Bit 12 - ID override value.

pub fn ext_id_override_en(&mut self) -> EXT_ID_OVERRIDE_EN_W[src]

Bit 13 - Enable ID override using the pinmuxed value:

pub fn ext_vbus_override_en(&mut self) -> EXT_VBUS_OVERRIDE_EN_W[src]

Bit 14 - Enable VBUS override using the pinmuxed value.

pub fn vbusvalid_to_sessvalid(&mut self) -> VBUSVALID_TO_SESSVALID_W[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 vbusvalid_5vdetect(&mut self) -> VBUSVALID_5VDETECT_W[src]

Bit 19 - no description available

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

Bits 20:22 - Enables the VBUS_VALID comparator: Powers up the comparator used for the VBUS_VALID detector

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

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