[][src]Enum stm32l4xx_hal::stm32::i2c1::oar2::OA2MSKR

pub enum OA2MSKR {
    NOMASK,
    MASK1,
    MASK2,
    MASK3,
    MASK4,
    MASK5,
    MASK6,
    MASK7,
}

Possible values of the field OA2MSK

Variants

NOMASK

No mask

MASK1

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

MASK2

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

MASK3

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

MASK4

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

MASK5

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

MASK6

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

MASK7

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[src]

pub fn bits(&self) -> u8[src]

Value of the field as raw bits

pub fn is_no_mask(&self) -> bool[src]

Checks if the value of the field is NOMASK

pub fn is_mask1(&self) -> bool[src]

Checks if the value of the field is MASK1

pub fn is_mask2(&self) -> bool[src]

Checks if the value of the field is MASK2

pub fn is_mask3(&self) -> bool[src]

Checks if the value of the field is MASK3

pub fn is_mask4(&self) -> bool[src]

Checks if the value of the field is MASK4

pub fn is_mask5(&self) -> bool[src]

Checks if the value of the field is MASK5

pub fn is_mask6(&self) -> bool[src]

Checks if the value of the field is MASK6

pub fn is_mask7(&self) -> bool[src]

Checks if the value of the field is MASK7

Trait Implementations

impl Debug for OA2MSKR[src]

impl PartialEq<OA2MSKR> for OA2MSKR[src]

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

This method tests for !=.

impl Copy for OA2MSKR[src]

impl Clone for OA2MSKR[src]

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

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for OA2MSKR

impl Sync for OA2MSKR

Blanket Implementations

impl<T> From for T[src]

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

type Error = !

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

The type returned in the event of a conversion error.

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]

impl<T> Same for T

type Output = T

Should always be Self