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