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

source

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