#[repr(transparent)]pub struct Usbregstatus(pub u32);Expand description
USB supply status
Tuple Fields§
§0: u32Implementations§
Source§impl Usbregstatus
impl Usbregstatus
Sourcepub const fn vbusdetect(&self) -> bool
pub const fn vbusdetect(&self) -> bool
VBUS input detection status (USBDETECTED and USBREMOVED events are derived from this information)
Sourcepub fn set_vbusdetect(&mut self, val: bool)
pub fn set_vbusdetect(&mut self, val: bool)
VBUS input detection status (USBDETECTED and USBREMOVED events are derived from this information)
Sourcepub fn set_outputrdy(&mut self, val: bool)
pub fn set_outputrdy(&mut self, val: bool)
USB supply output settling time elapsed
Trait Implementations§
Source§impl Clone for Usbregstatus
impl Clone for Usbregstatus
Source§fn clone(&self) -> Usbregstatus
fn clone(&self) -> Usbregstatus
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Usbregstatus
impl Debug for Usbregstatus
Source§impl Default for Usbregstatus
impl Default for Usbregstatus
Source§fn default() -> Usbregstatus
fn default() -> Usbregstatus
Returns the “default value” for a type. Read more
Source§impl PartialEq for Usbregstatus
impl PartialEq for Usbregstatus
impl Copy for Usbregstatus
impl Eq for Usbregstatus
impl StructuralPartialEq for Usbregstatus
Auto Trait Implementations§
impl Freeze for Usbregstatus
impl RefUnwindSafe for Usbregstatus
impl Send for Usbregstatus
impl Sync for Usbregstatus
impl Unpin for Usbregstatus
impl UnwindSafe for Usbregstatus
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