pub enum VBUSDETECT_A {
NO_VBUS = 0,
VBUS_PRESENT = 1,
}
Expand description
VBUS input detection status (USBDETECTED and USBREMOVED events are derived from this information)
Value on reset: 0
Variants§
NO_VBUS = 0
0: VBUS voltage below valid threshold
VBUS_PRESENT = 1
1: VBUS voltage above valid threshold
Trait Implementations§
source§impl Clone for VBUSDETECT_A
impl Clone for VBUSDETECT_A
source§fn clone(&self) -> VBUSDETECT_A
fn clone(&self) -> VBUSDETECT_A
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 Debug for VBUSDETECT_A
impl Debug for VBUSDETECT_A
source§impl From<VBUSDETECT_A> for bool
impl From<VBUSDETECT_A> for bool
source§fn from(variant: VBUSDETECT_A) -> Self
fn from(variant: VBUSDETECT_A) -> Self
Converts to this type from the input type.
source§impl PartialEq for VBUSDETECT_A
impl PartialEq for VBUSDETECT_A
impl Copy for VBUSDETECT_A
impl StructuralPartialEq for VBUSDETECT_A
Auto Trait Implementations§
impl Freeze for VBUSDETECT_A
impl RefUnwindSafe for VBUSDETECT_A
impl Send for VBUSDETECT_A
impl Sync for VBUSDETECT_A
impl Unpin for VBUSDETECT_A
impl UnwindSafe for VBUSDETECT_A
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
)