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