Enum Noiseshape
#[repr(u8)]pub enum Noiseshape {
DISABLE = 0,
AUDIO = 1,
ACCURACY = 2,
_RESERVED_3 = 3,
}
Variants§
DISABLE = 0
Disable noiseshaping. Oversampling based on accumulate and average.
AUDIO = 1
Noiseshaping and decimating. Larger passband. Provides a 50kS/s cut off frequency, 8x the oversampling ratio. See design description for more information
ACCURACY = 2
Noiseshaping and decimating. Smaller passband. Recommended resolution setting is 14 bits. Provides a 5kS/s cut off frequency, 32x the oversampling ratio. See design description for more information
_RESERVED_3 = 3
Implementations§
§impl Noiseshape
impl Noiseshape
pub const fn from_bits(val: u8) -> Noiseshape
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for Noiseshape
impl Clone for Noiseshape
§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 more§impl From<u8> for Noiseshape
impl From<u8> for Noiseshape
§fn from(val: u8) -> Noiseshape
fn from(val: u8) -> Noiseshape
Converts to this type from the input type.
§impl Ord for Noiseshape
impl Ord for Noiseshape
§impl PartialEq for Noiseshape
impl PartialEq for Noiseshape
§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
)