#[repr(transparent)]pub struct Usb1VbusDetectSet(pub u32);Expand description
USB VBUS Detect Register
Tuple Fields§
§0: u32Implementations§
Source§impl Usb1VbusDetectSet
impl Usb1VbusDetectSet
Sourcepub const fn vbusvalid_thresh(&self) -> Usb1VbusDetectSetVbusvalidThresh
pub const fn vbusvalid_thresh(&self) -> Usb1VbusDetectSetVbusvalidThresh
Set 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, )
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 Usb1VbusDetectSet
impl Clone for Usb1VbusDetectSet
Source§fn clone(&self) -> Usb1VbusDetectSet
fn clone(&self) -> Usb1VbusDetectSet
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 Usb1VbusDetectSet
impl Debug for Usb1VbusDetectSet
Source§impl Default for Usb1VbusDetectSet
impl Default for Usb1VbusDetectSet
Source§fn default() -> Usb1VbusDetectSet
fn default() -> Usb1VbusDetectSet
Returns the “default value” for a type. Read more
Source§impl PartialEq for Usb1VbusDetectSet
impl PartialEq for Usb1VbusDetectSet
impl Copy for Usb1VbusDetectSet
impl Eq for Usb1VbusDetectSet
impl StructuralPartialEq for Usb1VbusDetectSet
Auto Trait Implementations§
impl Freeze for Usb1VbusDetectSet
impl RefUnwindSafe for Usb1VbusDetectSet
impl Send for Usb1VbusDetectSet
impl Sync for Usb1VbusDetectSet
impl Unpin for Usb1VbusDetectSet
impl UnwindSafe for Usb1VbusDetectSet
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