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