#[repr(transparent)]pub struct Usb1VbusDetectSet(pub u32);Expand description
USB PHY VBUS Detect Control Register
Tuple Fields§
§0: u32Implementations§
Source§impl Usb1VbusDetectSet
impl Usb1VbusDetectSet
Sourcepub const fn vbusvalid_thresh(&self) -> Usb1VbusDetectSetVbusvalidThresh
pub const fn vbusvalid_thresh(&self) -> Usb1VbusDetectSetVbusvalidThresh
Sets the threshold for the VBUSVALID comparator
Sourcepub const fn set_vbusvalid_thresh(
&mut self,
val: Usb1VbusDetectSetVbusvalidThresh,
)
pub const fn set_vbusvalid_thresh( &mut self, val: Usb1VbusDetectSetVbusvalidThresh, )
Sets the threshold for the VBUSVALID comparator
Sourcepub const fn vbus_override_en(&self) -> Usb1VbusDetectSetVbusOverrideEn
pub const fn vbus_override_en(&self) -> Usb1VbusDetectSetVbusOverrideEn
VBUS detect signal override enable
Sourcepub const fn set_vbus_override_en(
&mut self,
val: Usb1VbusDetectSetVbusOverrideEn,
)
pub const fn set_vbus_override_en( &mut self, val: Usb1VbusDetectSetVbusOverrideEn, )
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) -> Usb1VbusDetectSetVbusvalidSel
pub const fn vbusvalid_sel(&self) -> Usb1VbusDetectSetVbusvalidSel
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: Usb1VbusDetectSetVbusvalidSel)
pub const fn set_vbusvalid_sel(&mut self, val: Usb1VbusDetectSetVbusvalidSel)
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) -> Usb1VbusDetectSetVbusSourceSel
pub const fn vbus_source_sel(&self) -> Usb1VbusDetectSetVbusSourceSel
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: Usb1VbusDetectSetVbusSourceSel)
pub const fn set_vbus_source_sel(&mut self, val: Usb1VbusDetectSetVbusSourceSel)
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) -> Usb1VbusDetectSetExtIdOverrideEn
pub const fn ext_id_override_en(&self) -> Usb1VbusDetectSetExtIdOverrideEn
Enable ID override using the pinmuxed value:
Sourcepub const fn set_ext_id_override_en(
&mut self,
val: Usb1VbusDetectSetExtIdOverrideEn,
)
pub const fn set_ext_id_override_en( &mut self, val: Usb1VbusDetectSetExtIdOverrideEn, )
Enable ID override using the pinmuxed value:
Sourcepub const fn ext_vbus_override_en(&self) -> Usb1VbusDetectSetExtVbusOverrideEn
pub const fn ext_vbus_override_en(&self) -> Usb1VbusDetectSetExtVbusOverrideEn
Enable VBUS override using the pinmuxed value.
Sourcepub const fn set_ext_vbus_override_en(
&mut self,
val: Usb1VbusDetectSetExtVbusOverrideEn,
)
pub const fn set_ext_vbus_override_en( &mut self, val: Usb1VbusDetectSetExtVbusOverrideEn, )
Enable VBUS override using the pinmuxed value.
Sourcepub const fn vbusvalid_to_sessvalid(
&self,
) -> Usb1VbusDetectSetVbusvalidToSessvalid
pub const fn vbusvalid_to_sessvalid( &self, ) -> Usb1VbusDetectSetVbusvalidToSessvalid
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: Usb1VbusDetectSetVbusvalidToSessvalid,
)
pub const fn set_vbusvalid_to_sessvalid( &mut self, val: Usb1VbusDetectSetVbusvalidToSessvalid, )
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) -> Usb1VbusDetectSetPwrupCmps
pub const fn pwrup_cmps(&self) -> Usb1VbusDetectSetPwrupCmps
Enables the VBUS_VALID comparator: Powers up the comparator used for the VBUS_VALID detector
Sourcepub const fn set_pwrup_cmps(&mut self, val: Usb1VbusDetectSetPwrupCmps)
pub const fn set_pwrup_cmps(&mut self, val: Usb1VbusDetectSetPwrupCmps)
Enables the VBUS_VALID comparator: Powers up the comparator used for the VBUS_VALID detector
Sourcepub const fn discharge_vbus(&self) -> Usb1VbusDetectSetDischargeVbus
pub const fn discharge_vbus(&self) -> Usb1VbusDetectSetDischargeVbus
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: Usb1VbusDetectSetDischargeVbus)
pub const fn set_discharge_vbus(&mut self, val: Usb1VbusDetectSetDischargeVbus)
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 Usb1VbusDetectSet
impl Clone for Usb1VbusDetectSet
Source§fn clone(&self) -> Usb1VbusDetectSet
fn clone(&self) -> Usb1VbusDetectSet
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more