Type Alias rp2040_pac::i2c0::ic_rx_tl::W

source ·
pub type W = W<IC_RX_TL_SPEC>;
Expand description

Register IC_RX_TL writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn rx_tl(&mut self) -> RX_TL_W<'_, IC_RX_TL_SPEC>

Bits 0:7 - Receive FIFO Threshold Level.

Controls the level of entries (or above) that triggers the RX_FULL interrupt (bit 2 in IC_RAW_INTR_STAT register). The valid range is 0-255, with the additional restriction that hardware does not allow this value to be set to a 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 1 entry, and a value of 255 sets the threshold for 256 entries.

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual