#[repr(u8)]
pub enum OA2MSK_A {
    NoMask,
    Mask1,
    Mask2,
    Mask3,
    Mask4,
    Mask5,
    Mask6,
    Mask7,
}
Expand description

Own Address 2 masks Note: These bits can be written only when OA2EN=0. As soon as OA2MSK is not equal to 0, the reserved I2C addresses (0b0000xxx and 0b1111xxx) are not acknowledged even if the comparison matches.

Value on reset: 0

Variants

NoMask

0: No mask

Mask1

1: OA2[1] is masked and don’t care. Only OA2[7:2] are compared

Mask2

2: OA2[2:1] are masked and don’t care. Only OA2[7:3] are compared

Mask3

3: OA2[3:1] are masked and don’t care. Only OA2[7:4] are compared

Mask4

4: OA2[4:1] are masked and don’t care. Only OA2[7:5] are compared

Mask5

5: OA2[5:1] are masked and don’t care. Only OA2[7:6] are compared

Mask6

6: OA2[6:1] are masked and don’t care. Only OA2[7] is compared.

Mask7

7: OA2[7:1] are masked and don’t care. No comparison is done, and all (except reserved) 7-bit received addresses are acknowledged

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.