[]Struct nucleo_f042k6::i2c1::isr::R

pub struct R { /* fields omitted */ }

Value read from the register

Methods

impl R

pub fn bits(&self) -> u32

Value of the register as raw bits

pub fn addcode(&self) -> ADDCODER

Bits 17:23 - Address match code (Slave mode)

pub fn dir(&self) -> DIRR

Bit 16 - Transfer direction (Slave mode)

pub fn busy(&self) -> BUSYR

Bit 15 - Bus busy

pub fn alert(&self) -> ALERTR

Bit 13 - SMBus alert

pub fn timeout(&self) -> TIMEOUTR

Bit 12 - Timeout or t_low detection flag

pub fn pecerr(&self) -> PECERRR

Bit 11 - PEC Error in reception

pub fn ovr(&self) -> OVRR

Bit 10 - Overrun/Underrun (slave mode)

pub fn arlo(&self) -> ARLOR

Bit 9 - Arbitration lost

pub fn berr(&self) -> BERRR

Bit 8 - Bus error

pub fn tcr(&self) -> TCRR

Bit 7 - Transfer Complete Reload

pub fn tc(&self) -> TCR

Bit 6 - Transfer Complete (master mode)

pub fn stopf(&self) -> STOPFR

Bit 5 - Stop detection flag

pub fn nackf(&self) -> NACKFR

Bit 4 - Not acknowledge received flag

pub fn addr(&self) -> ADDRR

Bit 3 - Address matched (slave mode)

pub fn rxne(&self) -> RXNER

Bit 2 - Receive data register not empty (receivers)

pub fn txis(&self) -> TXISR

Bit 1 - Transmit interrupt status (transmitters)

pub fn txe(&self) -> TXER

Bit 0 - Transmit data register empty (transmitters)

Auto Trait Implementations

impl Send for R

impl Sync for R

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]