Type Alias rp2040_pac::i2c0::ic_tx_tl::R

source ·
pub type R = R<IC_TX_TL_SPEC>;
Expand description

Register IC_TX_TL reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn tx_tl(&self) -> TX_TL_R

Bits 0:7 - Transmit FIFO Threshold Level.

Controls the level of entries (or below) that trigger the TX_EMPTY interrupt (bit 4 in IC_RAW_INTR_STAT register). The valid range is 0-255, with the additional restriction that it may not be set to value larger than the depth of the buffer. If an attempt is made to do that, the actual value set will be the maximum depth of the buffer. A value of 0 sets the threshold for 0 entries, and a value of 255 sets the threshold for 255 entries.