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