[][src]Struct cc2650::i2c0::mstat::R

pub struct R { /* fields omitted */ }

Value read from the register

Methods

impl R[src]

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

Value of the register as raw bits

pub fn reserved7(&self) -> RESERVED7R[src]

Bits 7:31 - Software should not rely on the value of a reserved. Writing any other value than the reset value may result in undefined behavior.

pub fn busbsy(&self) -> BUSBSYR[src]

Bit 6 - Bus busy 0: The I2C bus is idle. 1: The I2C bus is busy. The bit changes based on the MCTRL.START and MCTRL.STOP conditions.

pub fn idle(&self) -> IDLER[src]

Bit 5 - I2C idle 0: The I2C controller is not idle. 1: The I2C controller is idle.

pub fn arblst(&self) -> ARBLSTR[src]

Bit 4 - Arbitration lost 0: The I2C controller won arbitration. 1: The I2C controller lost arbitration.

pub fn datack_n(&self) -> DATACK_NR[src]

Bit 3 - Data Was Not Acknowledge 0: The transmitted data was acknowledged. 1: The transmitted data was not acknowledged.

pub fn adrack_n(&self) -> ADRACK_NR[src]

Bit 2 - Address Was Not Acknowledge 0: The transmitted address was acknowledged. 1: The transmitted address was not acknowledged.

pub fn err(&self) -> ERRR[src]

Bit 1 - Error 0: No error was detected on the last operation. 1: An error occurred on the last operation.

pub fn busy(&self) -> BUSYR[src]

Bit 0 - I2C busy 0: The controller is idle. 1: The controller is busy. When this bit-field is set, the other status bits are not valid. Note: The I2C controller requires four SYSBUS clock cycles to assert the BUSY status after I2C master operation has been initiated through MCTRL register. Hence after programming MCTRL register, application is requested to wait for four SYSBUS clock cycles before issuing a controller status inquiry through MSTAT register. Any prior inquiry would result in wrong status being reported.

Auto Trait Implementations

impl Send for R

impl Sync for R

Blanket Implementations

impl<T> From for T[src]

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

type Error = Infallible

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

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]