Type Alias rp2040_pac::i2c0::ic_data_cmd::STOP_W

source ·
pub type STOP_W<'a, REG> = BitWriter<'a, REG, STOP_A>;
Expand description

Field STOP writer - This bit controls whether a STOP is issued after the byte is sent or received.

  • 1 - STOP is issued after this byte, regardless of whether or not the Tx FIFO is empty. If the Tx FIFO is not empty, the master immediately tries to start a new transfer by issuing a START and arbitrating for the bus. - 0 - STOP is not issued after this byte, regardless of whether or not the Tx FIFO is empty. If the Tx FIFO is not empty, the master continues the current transfer by sending/receiving data bytes according to the value of the CMD bit. If the Tx FIFO is empty, the master holds the SCL line low and stalls the bus until a new command is available in the Tx FIFO. Reset value: 0x0

Aliased Type§

struct STOP_W<'a, REG> { /* private fields */ }

Implementations§

source§

impl<'a, REG> STOP_W<'a, REG>
where REG: Writable + RegisterSpec,

source

pub fn disable(self) -> &'a mut W<REG>

Don’t Issue STOP after this command

source

pub fn enable(self) -> &'a mut W<REG>

Issue STOP after this command