Enum SampleTime
#[repr(u8)]pub enum SampleTime {
CYCLES4 = 0,
CYCLES9 = 1,
CYCLES16 = 2,
CYCLES24 = 3,
CYCLES48 = 4,
CYCLES96 = 5,
CYCLES192 = 6,
CYCLES384 = 7,
}
Variants§
CYCLES4 = 0
4 ADC clock cycles
CYCLES9 = 1
9 ADC clock cycles
CYCLES16 = 2
16 ADC clock cycles
CYCLES24 = 3
24 ADC clock cycles
CYCLES48 = 4
48 ADC clock cycles
CYCLES96 = 5
96 ADC clock cycles
CYCLES192 = 6
192 ADC clock cycles
CYCLES384 = 7
384 ADC clock 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 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 more§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
§impl PartialEq for SampleTime
impl PartialEq for SampleTime
§impl PartialOrd for SampleTime
impl PartialOrd for SampleTime
impl Copy for SampleTime
impl Eq 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 UnwindSafe for SampleTime
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