Enum SampleTime
#[repr(u8)]pub enum SampleTime {
CYCLES3 = 0,
CYCLES9 = 1,
CYCLES15 = 2,
CYCLES30 = 3,
CYCLES43 = 4,
CYCLES57 = 5,
CYCLES73 = 6,
CYCLES241 = 7,
}Expand description
Sample time selection
Variants§
CYCLES3 = 0
3 cycles
CYCLES9 = 1
9 cycles
CYCLES15 = 2
15 cycles
CYCLES30 = 3
30 cycles
CYCLES43 = 4
43 cycles
CYCLES57 = 5
57 cycles
CYCLES73 = 6
73 cycles
CYCLES241 = 7
241 cycles
Implementations§
§impl SampleTime
impl SampleTime
pub const fn from_bits(val: u8) -> SampleTime
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for SampleTime
impl Clone for SampleTime
§fn clone(&self) -> SampleTime
fn clone(&self) -> SampleTime
Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SampleTime
§impl Debug for SampleTime
impl Debug for SampleTime
impl Eq for SampleTime
§impl From<u8> for SampleTime
impl From<u8> for SampleTime
§fn from(val: u8) -> SampleTime
fn from(val: u8) -> SampleTime
Converts to this type from the input type.
§impl Ord for SampleTime
impl Ord for SampleTime
§fn cmp(&self, other: &SampleTime) -> Ordering
fn cmp(&self, other: &SampleTime) -> Ordering
1.21.0 (const: unstable)§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for SampleTime
impl PartialEq for SampleTime
§impl PartialOrd for SampleTime
impl PartialOrd for SampleTime
impl StructuralPartialEq for SampleTime
Auto Trait Implementations§
impl Freeze for SampleTime
impl RefUnwindSafe for SampleTime
impl Send for SampleTime
impl Sync for SampleTime
impl Unpin for SampleTime
impl UnsafeUnpin for SampleTime
impl UnwindSafe for SampleTime
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)