#[repr(u8)]
pub enum DNF_A {
Show 16 variants
NoFilter,
Filter1,
Filter2,
Filter3,
Filter4,
Filter5,
Filter6,
Filter7,
Filter8,
Filter9,
Filter10,
Filter11,
Filter12,
Filter13,
Filter14,
Filter15,
}
Expand description
Digital noise filter These bits are used to configure the digital noise filter on SDA and SCL input. The digital filter, filters 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: Digital filter disabled
Filter1
1: Digital filter enabled and filtering capability up to 1 tI2CCLK
Filter2
2: Digital filter enabled and filtering capability up to 2 tI2CCLK
Filter3
3: Digital filter enabled and filtering capability up to 3 tI2CCLK
Filter4
4: Digital filter enabled and filtering capability up to 4 tI2CCLK
Filter5
5: Digital filter enabled and filtering capability up to 5 tI2CCLK
Filter6
6: Digital filter enabled and filtering capability up to 6 tI2CCLK
Filter7
7: Digital filter enabled and filtering capability up to 7 tI2CCLK
Filter8
8: Digital filter enabled and filtering capability up to 8 tI2CCLK
Filter9
9: Digital filter enabled and filtering capability up to 9 tI2CCLK
Filter10
10: Digital filter enabled and filtering capability up to 10 tI2CCLK
Filter11
11: Digital filter enabled and filtering capability up to 11 tI2CCLK
Filter12
12: Digital filter enabled and filtering capability up to 12 tI2CCLK
Filter13
13: Digital filter enabled and filtering capability up to 13 tI2CCLK
Filter14
14: Digital filter enabled and filtering capability up to 14 tI2CCLK
Filter15
15: Digital filter enabled and filtering capability up to 15 tI2CCLK
Trait Implementations
impl Copy for DNF_A
impl StructuralPartialEq for DNF_A
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more