#[repr(u8)]pub enum OA2MSK_A {
NoMask = 0,
Mask1 = 1,
Mask2 = 2,
Mask3 = 3,
Mask4 = 4,
Mask5 = 5,
Mask6 = 6,
Mask7 = 7,
}
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
0: No mask
Mask1 = 1
1: OA2[1] is masked and don’t care. Only OA2[7:2] are compared
Mask2 = 2
2: OA2[2:1] are masked and don’t care. Only OA2[7:3] are compared
Mask3 = 3
3: OA2[3:1] are masked and don’t care. Only OA2[7:4] are compared
Mask4 = 4
4: OA2[4:1] are masked and don’t care. Only OA2[7:5] are compared
Mask5 = 5
5: OA2[5:1] are masked and don’t care. Only OA2[7:6] are compared
Mask6 = 6
6: OA2[6:1] are masked and don’t care. Only OA2[7] is compared.
Mask7 = 7
7: OA2[7:1] are masked and don’t care. No comparison is done, and all (except reserved) 7-bit received addresses are acknowledged