#[repr(transparent)]pub struct Usb1VbusDetect(pub u32);Expand description
USB PHY VBUS Detect Control Register
Tuple Fields§
§0: u32Implementations§
Source§impl Usb1VbusDetect
impl Usb1VbusDetect
Sourcepub const fn vbusvalid_thresh(&self) -> Usb1VbusDetectVbusvalidThresh
pub const fn vbusvalid_thresh(&self) -> Usb1VbusDetectVbusvalidThresh
Sets the threshold for the VBUSVALID comparator
Sourcepub const fn set_vbusvalid_thresh(&mut self, val: Usb1VbusDetectVbusvalidThresh)
pub const fn set_vbusvalid_thresh(&mut self, val: Usb1VbusDetectVbusvalidThresh)
Sets the threshold for the VBUSVALID comparator
Sourcepub const fn vbus_override_en(&self) -> Usb1VbusDetectVbusOverrideEn
pub const fn vbus_override_en(&self) -> Usb1VbusDetectVbusOverrideEn
VBUS detect signal override enable
Sourcepub const fn set_vbus_override_en(&mut self, val: Usb1VbusDetectVbusOverrideEn)
pub const fn set_vbus_override_en(&mut self, val: Usb1VbusDetectVbusOverrideEn)
VBUS detect signal override enable
Sourcepub const fn sessend_override(&self) -> bool
pub const fn sessend_override(&self) -> bool
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
Sourcepub const fn set_sessend_override(&mut self, val: bool)
pub const fn set_sessend_override(&mut self, val: bool)
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
Sourcepub const fn bvalid_override(&self) -> bool
pub const fn bvalid_override(&self) -> bool
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
Sourcepub const fn set_bvalid_override(&mut self, val: bool)
pub const fn set_bvalid_override(&mut self, val: bool)
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
Sourcepub const fn avalid_override(&self) -> bool
pub const fn avalid_override(&self) -> bool
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
Sourcepub const fn set_avalid_override(&mut self, val: bool)
pub const fn set_avalid_override(&mut self, val: bool)
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
Sourcepub const fn vbusvalid_override(&self) -> bool
pub const fn vbusvalid_override(&self) -> bool
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
Sourcepub const fn set_vbusvalid_override(&mut self, val: bool)
pub const fn set_vbusvalid_override(&mut self, val: bool)
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
Sourcepub const fn vbusvalid_sel(&self) -> Usb1VbusDetectVbusvalidSel
pub const fn vbusvalid_sel(&self) -> Usb1VbusDetectVbusvalidSel
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
Sourcepub const fn set_vbusvalid_sel(&mut self, val: Usb1VbusDetectVbusvalidSel)
pub const fn set_vbusvalid_sel(&mut self, val: Usb1VbusDetectVbusvalidSel)
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
Sourcepub const fn vbus_source_sel(&self) -> Usb1VbusDetectVbusSourceSel
pub const fn vbus_source_sel(&self) -> Usb1VbusDetectVbusSourceSel
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
Sourcepub const fn set_vbus_source_sel(&mut self, val: Usb1VbusDetectVbusSourceSel)
pub const fn set_vbus_source_sel(&mut self, val: Usb1VbusDetectVbusSourceSel)
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
Sourcepub const fn id_override_en(&self) -> bool
pub const fn id_override_en(&self) -> bool
Enable ID override using the register field. This bit is only used if EXT_ID_OVERRIDE_EN = 1’b0.
Sourcepub const fn set_id_override_en(&mut self, val: bool)
pub const fn set_id_override_en(&mut self, val: bool)
Enable ID override using the register field. This bit is only used if EXT_ID_OVERRIDE_EN = 1’b0.
Sourcepub const fn id_override(&self) -> bool
pub const fn id_override(&self) -> bool
ID override value.
Sourcepub const fn set_id_override(&mut self, val: bool)
pub const fn set_id_override(&mut self, val: bool)
ID override value.
Sourcepub const fn ext_id_override_en(&self) -> Usb1VbusDetectExtIdOverrideEn
pub const fn ext_id_override_en(&self) -> Usb1VbusDetectExtIdOverrideEn
Enable ID override using the pinmuxed value:
Sourcepub const fn set_ext_id_override_en(
&mut self,
val: Usb1VbusDetectExtIdOverrideEn,
)
pub const fn set_ext_id_override_en( &mut self, val: Usb1VbusDetectExtIdOverrideEn, )
Enable ID override using the pinmuxed value:
Sourcepub const fn ext_vbus_override_en(&self) -> Usb1VbusDetectExtVbusOverrideEn
pub const fn ext_vbus_override_en(&self) -> Usb1VbusDetectExtVbusOverrideEn
Enable VBUS override using the pinmuxed value.
Sourcepub const fn set_ext_vbus_override_en(
&mut self,
val: Usb1VbusDetectExtVbusOverrideEn,
)
pub const fn set_ext_vbus_override_en( &mut self, val: Usb1VbusDetectExtVbusOverrideEn, )
Enable VBUS override using the pinmuxed value.
Sourcepub const fn vbusvalid_to_sessvalid(&self) -> Usb1VbusDetectVbusvalidToSessvalid
pub const fn vbusvalid_to_sessvalid(&self) -> Usb1VbusDetectVbusvalidToSessvalid
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
Sourcepub const fn set_vbusvalid_to_sessvalid(
&mut self,
val: Usb1VbusDetectVbusvalidToSessvalid,
)
pub const fn set_vbusvalid_to_sessvalid( &mut self, val: Usb1VbusDetectVbusvalidToSessvalid, )
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
Sourcepub const fn vbusvalid_5vdetect(&self) -> bool
pub const fn vbusvalid_5vdetect(&self) -> bool
no description available
Sourcepub const fn set_vbusvalid_5vdetect(&mut self, val: bool)
pub const fn set_vbusvalid_5vdetect(&mut self, val: bool)
no description available
Sourcepub const fn pwrup_cmps(&self) -> Usb1VbusDetectPwrupCmps
pub const fn pwrup_cmps(&self) -> Usb1VbusDetectPwrupCmps
Enables the VBUS_VALID comparator: Powers up the comparator used for the VBUS_VALID detector
Sourcepub const fn set_pwrup_cmps(&mut self, val: Usb1VbusDetectPwrupCmps)
pub const fn set_pwrup_cmps(&mut self, val: Usb1VbusDetectPwrupCmps)
Enables the VBUS_VALID comparator: Powers up the comparator used for the VBUS_VALID detector
Sourcepub const fn discharge_vbus(&self) -> Usb1VbusDetectDischargeVbus
pub const fn discharge_vbus(&self) -> Usb1VbusDetectDischargeVbus
Controls VBUS discharge resistor This bit field controls a nominal 22kohm resistor between the USB1_VBUS pin and ground
Sourcepub const fn set_discharge_vbus(&mut self, val: Usb1VbusDetectDischargeVbus)
pub const fn set_discharge_vbus(&mut self, val: Usb1VbusDetectDischargeVbus)
Controls VBUS discharge resistor This bit field controls a nominal 22kohm resistor between the USB1_VBUS pin and ground
Trait Implementations§
Source§impl Clone for Usb1VbusDetect
impl Clone for Usb1VbusDetect
Source§fn clone(&self) -> Usb1VbusDetect
fn clone(&self) -> Usb1VbusDetect
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more