#[repr(u8)]pub enum SCANMODE_A {
PERIODIC = 0,
ONESHOT = 1,
PRS = 2,
}
Expand description
Configure scan mode
Value on reset: 0
Variants§
PERIODIC = 0
0: A new scan is started each time the period counter overflows
ONESHOT = 1
1: A single scan is performed when START in CMD is set
PRS = 2
2: Pulse on PRS channel
Trait Implementations§
Source§impl Clone for SCANMODE_A
impl Clone for SCANMODE_A
Source§fn clone(&self) -> SCANMODE_A
fn clone(&self) -> SCANMODE_A
Returns a duplicate 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 SCANMODE_A
impl Debug for SCANMODE_A
Source§impl From<SCANMODE_A> for u8
impl From<SCANMODE_A> for u8
Source§fn from(variant: SCANMODE_A) -> Self
fn from(variant: SCANMODE_A) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SCANMODE_A
impl PartialEq for SCANMODE_A
impl Copy for SCANMODE_A
impl StructuralPartialEq for SCANMODE_A
Auto Trait Implementations§
impl Freeze for SCANMODE_A
impl RefUnwindSafe for SCANMODE_A
impl Send for SCANMODE_A
impl Sync for SCANMODE_A
impl Unpin for SCANMODE_A
impl UnwindSafe for SCANMODE_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