Enum d1_pac::twi::twi_drv_ctrl::TWI_STA_A
source · #[repr(u8)]pub enum TWI_STA_A {
Show 13 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_AR = 80,
DBRM_ANR = 88,
T_S9SC = 1,
}
Expand description
TWI status
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_AR = 80
80: Data byte received in master mode, ACK received
DBRM_ANR = 88
88: Data byte received in master mode, ACK not received
T_S9SC = 1
1: Timeout when sending the 9th SCL clock
Trait Implementations§
impl Copy for TWI_STA_A
impl Eq for TWI_STA_A
impl StructuralPartialEq for TWI_STA_A
Auto Trait Implementations§
impl Freeze for TWI_STA_A
impl RefUnwindSafe for TWI_STA_A
impl Send for TWI_STA_A
impl Sync for TWI_STA_A
impl Unpin for TWI_STA_A
impl UnwindSafe for TWI_STA_A
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)