pub enum Oversampling {
X8,
X16,
}Expand description
How many times each bit is sampled.
×16 is the default and more tolerant of clock error; ×8 halves the sampling rate, which allows higher bit rates from the same peripheral clock.
Variants§
X8
8 samples per bit — allows twice the bit rate from the same clock.
X16
16 samples per bit — the default, more tolerant of clock error.
Trait Implementations§
Source§impl Clone for Oversampling
impl Clone for Oversampling
Source§fn clone(&self) -> Oversampling
fn clone(&self) -> Oversampling
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Oversampling
impl Eq for Oversampling
Source§impl Format for Oversampling
impl Format for Oversampling
Source§impl PartialEq for Oversampling
impl PartialEq for Oversampling
impl StructuralPartialEq for Oversampling
Auto Trait Implementations§
impl Freeze for Oversampling
impl RefUnwindSafe for Oversampling
impl Send for Oversampling
impl Sync for Oversampling
impl Unpin for Oversampling
impl UnsafeUnpin for Oversampling
impl UnwindSafe for Oversampling
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