#[repr(u8)]
pub enum DNF_A {
Show 16 variants NoFilter = 0, Filter1 = 1, Filter2 = 2, Filter3 = 3, Filter4 = 4, Filter5 = 5, Filter6 = 6, Filter7 = 7, Filter8 = 8, Filter9 = 9, Filter10 = 10, Filter11 = 11, Filter12 = 12, Filter13 = 13, Filter14 = 14, Filter15 = 15,
}
Expand description

Digital noise filter These bits are used to configure the digital noise filter on SDA and SCL input. The digital filter will filter spikes with a length of up to DNF[3:0]

  • tI2CCLK … Note: If the analog filter is also enabled, the digital filter is added to the analog filter. This filter can only be programmed when the I2C is disabled (PE = 0).

Value on reset: 0

Variants§

§

NoFilter = 0

0: Digital filter disabled

§

Filter1 = 1

1: Digital filter enabled and filtering capability up to 1 tI2CCLK

§

Filter2 = 2

2: Digital filter enabled and filtering capability up to 2 tI2CCLK

§

Filter3 = 3

3: Digital filter enabled and filtering capability up to 3 tI2CCLK

§

Filter4 = 4

4: Digital filter enabled and filtering capability up to 4 tI2CCLK

§

Filter5 = 5

5: Digital filter enabled and filtering capability up to 5 tI2CCLK

§

Filter6 = 6

6: Digital filter enabled and filtering capability up to 6 tI2CCLK

§

Filter7 = 7

7: Digital filter enabled and filtering capability up to 7 tI2CCLK

§

Filter8 = 8

8: Digital filter enabled and filtering capability up to 8 tI2CCLK

§

Filter9 = 9

9: Digital filter enabled and filtering capability up to 9 tI2CCLK

§

Filter10 = 10

10: Digital filter enabled and filtering capability up to 10 tI2CCLK

§

Filter11 = 11

11: Digital filter enabled and filtering capability up to 11 tI2CCLK

§

Filter12 = 12

12: Digital filter enabled and filtering capability up to 12 tI2CCLK

§

Filter13 = 13

13: Digital filter enabled and filtering capability up to 13 tI2CCLK

§

Filter14 = 14

14: Digital filter enabled and filtering capability up to 14 tI2CCLK

§

Filter15 = 15

15: Digital filter enabled and filtering capability up to 15 tI2CCLK

Trait Implementations§

source§

impl Clone for DNF_A

source§

fn clone(&self) -> DNF_A

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DNF_A

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl PartialEq for DNF_A

source§

fn eq(&self, other: &DNF_A) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for DNF_A

source§

impl StructuralPartialEq for DNF_A

Auto Trait Implementations§

§

impl Freeze for DNF_A

§

impl RefUnwindSafe for DNF_A

§

impl Send for DNF_A

§

impl Sync for DNF_A

§

impl Unpin for DNF_A

§

impl UnwindSafe for DNF_A

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.