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