Type Alias rp2040_pac::i2c0::ic_slv_data_nack_only::R
source · pub type R = R<IC_SLV_DATA_NACK_ONLY_SPEC>;
Expand description
Register IC_SLV_DATA_NACK_ONLY
reader
Aliased Type§
struct R { /* private fields */ }
Implementations§
source§impl R
impl R
sourcepub fn nack(&self) -> NACK_R
pub fn nack(&self) -> NACK_R
Bit 0 - 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