#[repr(u8)]pub enum Noiseshape {
DISABLE = 0,
NS1 = 1,
NS2 = 2,
NS3 = 3,
}Variants§
DISABLE = 0
Disable noiseshaping. Configurable oversampling.
NS1 = 1
Noiseshaping and decimating. Larger passband. Decimation ratio 8, 125 kS/s, with resulting bandwidth around 45 kHz. Takes precedence over the OVERSAMPLING register.
NS2 = 2
Noiseshaping and decimating. Smaller passband. Decimation ratio 32, 31.25 kS/s, with resulting bandwidth around 7 kHz. Takes precedence over the OVERSAMPLING register.
NS3 = 3
Noise shaping with oversampling set by the OVERSAMPLE register
Implementations§
Source§impl Noiseshape
impl Noiseshape
Trait Implementations§
Source§impl Clone for Noiseshape
impl Clone for Noiseshape
Source§fn clone(&self) -> Noiseshape
fn clone(&self) -> Noiseshape
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 Noiseshape
impl Debug for Noiseshape
Source§impl From<Noiseshape> for u8
impl From<Noiseshape> for u8
Source§fn from(val: Noiseshape) -> u8
fn from(val: Noiseshape) -> u8
Converts to this type from the input type.
Source§impl From<u8> for Noiseshape
impl From<u8> for Noiseshape
Source§fn from(val: u8) -> Noiseshape
fn from(val: u8) -> Noiseshape
Converts to this type from the input type.
Source§impl Ord for Noiseshape
impl Ord for Noiseshape
Source§fn cmp(&self, other: &Noiseshape) -> Ordering
fn cmp(&self, other: &Noiseshape) -> Ordering
1.21.0 · Source§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
Source§impl PartialEq for Noiseshape
impl PartialEq for Noiseshape
Source§impl PartialOrd for Noiseshape
impl PartialOrd for Noiseshape
impl Copy for Noiseshape
impl Eq for Noiseshape
impl StructuralPartialEq for Noiseshape
Auto Trait Implementations§
impl Freeze for Noiseshape
impl RefUnwindSafe for Noiseshape
impl Send for Noiseshape
impl Sync for Noiseshape
impl Unpin for Noiseshape
impl UnwindSafe for Noiseshape
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)