Type Alias rp2040_pac::i2c0::ic_slv_data_nack_only::W
source · pub type W = W<IC_SLV_DATA_NACK_ONLY_SPEC>;
Expand description
Register IC_SLV_DATA_NACK_ONLY
writer
Aliased Type§
struct W { /* private fields */ }
Implementations§
source§impl W
impl W
sourcepub fn nack(&mut self) -> NACK_W<'_, IC_SLV_DATA_NACK_ONLY_SPEC>
pub fn nack(&mut self) -> NACK_W<'_, IC_SLV_DATA_NACK_ONLY_SPEC>
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