Enum rp2040_pac::i2c0::ic_slv_data_nack_only::NACK_A
source · pub enum NACK_A {
DISABLED = 0,
ENABLED = 1,
}
Expand description
Generate NACK. This NACK generation only occurs when DW_apb_i2c is a slave-receiver. If this register is set to a value of 1, it can only generate a NACK after a data byte is received; hence, the data transfer is aborted and the data received is not pushed to the receive buffer.
When the register is set to a value of 0, it generates NACK/ACK, depending on normal criteria. - 1: generate NACK after data byte received - 0: generate NACK/ACK normally Reset value: 0x0
Value on reset: 0
Variants§
DISABLED = 0
0: Slave receiver generates NACK normally
ENABLED = 1
1: Slave receiver generates NACK upon data reception only
Trait Implementations§
impl Copy for NACK_A
impl Eq for NACK_A
impl StructuralPartialEq for NACK_A
Auto Trait Implementations§
impl Freeze for NACK_A
impl RefUnwindSafe for NACK_A
impl Send for NACK_A
impl Sync for NACK_A
impl Unpin for NACK_A
impl UnwindSafe for NACK_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§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
)