Enum d1_pac::twi::twi_stat::STA_A

source ·
#[repr(u8)]
pub enum STA_A {
Show 29 variants BE = 0, SCT = 8, RSCT = 16, AWBT_AR = 24, AWBT_ANR = 32, DBTM_AR = 40, DBTM_ANR = 48, AL_A_DB = 56, ARBT_AR = 64, ARBT_ANR = 72, DBRM_AT = 80, DBRM_ANT = 88, SAWR_AT = 96, AL_AM_SAWR_AT = 104, GCAR_AT = 112, AL_AM_GCAR_AT = 120, DBR_SAR_AT = 128, DBR_SAR_ANT = 136, DBR_GCR_AT = 144, DBR_GCR_ANT = 152, SRSCRS = 160, SARR_AT = 168, AL_AM_SARR_AT = 176, DBTS_AR = 184, DBTS_ANR = 192, LBTS_AR = 200, SAWT_AR = 208, SAWT_ANR = 216, NRSI = 248,
}
Expand description

Value on reset: 0

Variants§

§

BE = 0

0: Bus error

§

SCT = 8

8: START condition transmitted

§

RSCT = 16

16: Repeated START condition transmitted

§

AWBT_AR = 24

24: Address + Write bit transmitted, ACK received

§

AWBT_ANR = 32

32: Address + Write bit transmitted, ACK not received

§

DBTM_AR = 40

40: Data byte transmitted in master mode, ACK received

§

DBTM_ANR = 48

48: Data byte transmitted in master mode, ACK not received

§

AL_A_DB = 56

56: Arbitration lost in address or data byte

§

ARBT_AR = 64

64: Address + Read bit transmitted, ACK received

§

ARBT_ANR = 72

72: Address + Read bit transmitted, ACK not received

§

DBRM_AT = 80

80: Data byte received in master mode, ACK transmitted

§

DBRM_ANT = 88

88: Data byte received in master mode, not ACK transmitted

§

SAWR_AT = 96

96: Slave address + Write bit received, ACK transmitted

§

AL_AM_SAWR_AT = 104

104: Arbitration lost in the address as master, slave address + Write bit received, ACK transmitted

§

GCAR_AT = 112

112: General Call address received, ACK transmitted

§

AL_AM_GCAR_AT = 120

120: Arbitration lost in the address as master, General Call address received, ACK transmitted

§

DBR_SAR_AT = 128

128: Data byte received after slave address received, ACK transmitted

§

DBR_SAR_ANT = 136

136: Data byte received after slave address received, not ACK transmitted

§

DBR_GCR_AT = 144

144: Data byte received after General Call received, ACK transmitted

§

DBR_GCR_ANT = 152

152: Data byte received after General Call received, not ACK transmitted

§

SRSCRS = 160

160: STOP or repeated START condition received in slave mode

§

SARR_AT = 168

168: Slave address + Read bit received, ACK transmitted

§

AL_AM_SARR_AT = 176

176: Arbitration lost in the address as master, slave address + Read bit received, ACK transmitted

§

DBTS_AR = 184

184: Data byte transmitted in slave mode, ACK received

§

DBTS_ANR = 192

192: Data byte transmitted in slave mode, ACK not received

§

LBTS_AR = 200

200: The Last byte transmitted in slave mode, ACK received

§

SAWT_AR = 208

208: Second Address byte + Write bit transmitted, ACK received

§

SAWT_ANR = 216

216: Second Address byte + Write bit transmitted, ACK not received

§

NRSI = 248

248: No relevant status information, INT_FLAG=0

Trait Implementations§

source§

impl Clone for STA_A

source§

fn clone(&self) -> STA_A

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for STA_A

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<STA_A> for u8

source§

fn from(variant: STA_A) -> Self

Converts to this type from the input type.
source§

impl PartialEq for STA_A

source§

fn eq(&self, other: &STA_A) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for STA_A

source§

impl Eq for STA_A

source§

impl StructuralPartialEq for STA_A

Auto Trait Implementations§

§

impl Freeze for STA_A

§

impl RefUnwindSafe for STA_A

§

impl Send for STA_A

§

impl Sync for STA_A

§

impl Unpin for STA_A

§

impl UnwindSafe for STA_A

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> CloneToUninit for T
where T: Copy,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.