#[repr(transparent)]pub struct Usb2VbusDetectSet(pub u32);Expand description
USB VBUS Detect Register
Tuple Fields§
§0: u32Implementations§
Source§impl Usb2VbusDetectSet
impl Usb2VbusDetectSet
Sourcepub const fn vbusvalid_thresh(&self) -> Usb2VbusDetectSetVbusvalidThresh
pub const fn vbusvalid_thresh(&self) -> Usb2VbusDetectSetVbusvalidThresh
Set the threshold for the VBUSVALID comparator
Sourcepub const fn set_vbusvalid_thresh(
&mut self,
val: Usb2VbusDetectSetVbusvalidThresh,
)
pub const fn set_vbusvalid_thresh( &mut self, val: Usb2VbusDetectSetVbusvalidThresh, )
Set the threshold for the VBUSVALID comparator
Sourcepub const fn vbusvalid_pwrup_cmps(&self) -> bool
pub const fn vbusvalid_pwrup_cmps(&self) -> bool
Powers up comparators for vbus_valid detector.
Sourcepub const fn set_vbusvalid_pwrup_cmps(&mut self, val: bool)
pub const fn set_vbusvalid_pwrup_cmps(&mut self, val: bool)
Powers up comparators for vbus_valid detector.
Sourcepub const fn discharge_vbus(&self) -> bool
pub const fn discharge_vbus(&self) -> bool
USB OTG discharge VBUS.
Sourcepub const fn set_discharge_vbus(&mut self, val: bool)
pub const fn set_discharge_vbus(&mut self, val: bool)
USB OTG discharge VBUS.
Sourcepub const fn charge_vbus(&self) -> bool
pub const fn charge_vbus(&self) -> bool
USB OTG charge VBUS.
Sourcepub const fn set_charge_vbus(&mut self, val: bool)
pub const fn set_charge_vbus(&mut self, val: bool)
USB OTG charge VBUS.
Trait Implementations§
Source§impl Clone for Usb2VbusDetectSet
impl Clone for Usb2VbusDetectSet
Source§fn clone(&self) -> Usb2VbusDetectSet
fn clone(&self) -> Usb2VbusDetectSet
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Usb2VbusDetectSet
impl Debug for Usb2VbusDetectSet
Source§impl Default for Usb2VbusDetectSet
impl Default for Usb2VbusDetectSet
Source§fn default() -> Usb2VbusDetectSet
fn default() -> Usb2VbusDetectSet
Returns the “default value” for a type. Read more
Source§impl PartialEq for Usb2VbusDetectSet
impl PartialEq for Usb2VbusDetectSet
impl Copy for Usb2VbusDetectSet
impl Eq for Usb2VbusDetectSet
impl StructuralPartialEq for Usb2VbusDetectSet
Auto Trait Implementations§
impl Freeze for Usb2VbusDetectSet
impl RefUnwindSafe for Usb2VbusDetectSet
impl Send for Usb2VbusDetectSet
impl Sync for Usb2VbusDetectSet
impl Unpin for Usb2VbusDetectSet
impl UnwindSafe for Usb2VbusDetectSet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more