#[repr(transparent)]pub struct Usbregstatus(pub u32);
Expand description
USB supply status
Tuple Fields§
§0: u32
Implementations§
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 copy 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)