[]Enum nucleo_f042k6::stm32::i2c1::oar2::OA2MSKR

pub enum OA2MSKR {
    NOMASK,
    MASK_1,
    MASK_2,
    MASK_3,
    MASK_4,
    MASK_5,
    MASK_6,
    MASK_7,
}

Possible values of the field OA2MSK

Variants

NOMASK

No mask

MASK_1

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

MASK_2

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

MASK_3

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

MASK_4

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

MASK_5

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

MASK_6

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

MASK_7

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

Methods

impl OA2MSKR

pub fn bits(&self) -> u8

Value of the field as raw bits

pub fn is_no_mask(&self) -> bool

Checks if the value of the field is NOMASK

pub fn is_mask_1(&self) -> bool

Checks if the value of the field is MASK_1

pub fn is_mask_2(&self) -> bool

Checks if the value of the field is MASK_2

pub fn is_mask_3(&self) -> bool

Checks if the value of the field is MASK_3

pub fn is_mask_4(&self) -> bool

Checks if the value of the field is MASK_4

pub fn is_mask_5(&self) -> bool

Checks if the value of the field is MASK_5

pub fn is_mask_6(&self) -> bool

Checks if the value of the field is MASK_6

pub fn is_mask_7(&self) -> bool

Checks if the value of the field is MASK_7

Trait Implementations

impl PartialEq<OA2MSKR> for OA2MSKR

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Clone for OA2MSKR

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for OA2MSKR

impl Debug for OA2MSKR

Auto Trait Implementations

impl Send for OA2MSKR

impl Sync for OA2MSKR

Blanket Implementations

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> From for T
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]