Type Alias rp2040_pac::i2c0::ic_intr_mask::W

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

Register IC_INTR_MASK writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn m_rx_under(&mut self) -> M_RX_UNDER_W<'_, IC_INTR_MASK_SPEC>

Bit 0 - This bit masks the R_RX_UNDER interrupt in IC_INTR_STAT register.

Reset value: 0x1

source

pub fn m_rx_over(&mut self) -> M_RX_OVER_W<'_, IC_INTR_MASK_SPEC>

Bit 1 - This bit masks the R_RX_OVER interrupt in IC_INTR_STAT register.

Reset value: 0x1

source

pub fn m_rx_full(&mut self) -> M_RX_FULL_W<'_, IC_INTR_MASK_SPEC>

Bit 2 - This bit masks the R_RX_FULL interrupt in IC_INTR_STAT register.

Reset value: 0x1

source

pub fn m_tx_over(&mut self) -> M_TX_OVER_W<'_, IC_INTR_MASK_SPEC>

Bit 3 - This bit masks the R_TX_OVER interrupt in IC_INTR_STAT register.

Reset value: 0x1

source

pub fn m_tx_empty(&mut self) -> M_TX_EMPTY_W<'_, IC_INTR_MASK_SPEC>

Bit 4 - This bit masks the R_TX_EMPTY interrupt in IC_INTR_STAT register.

Reset value: 0x1

source

pub fn m_rd_req(&mut self) -> M_RD_REQ_W<'_, IC_INTR_MASK_SPEC>

Bit 5 - This bit masks the R_RD_REQ interrupt in IC_INTR_STAT register.

Reset value: 0x1

source

pub fn m_tx_abrt(&mut self) -> M_TX_ABRT_W<'_, IC_INTR_MASK_SPEC>

Bit 6 - This bit masks the R_TX_ABRT interrupt in IC_INTR_STAT register.

Reset value: 0x1

source

pub fn m_rx_done(&mut self) -> M_RX_DONE_W<'_, IC_INTR_MASK_SPEC>

Bit 7 - This bit masks the R_RX_DONE interrupt in IC_INTR_STAT register.

Reset value: 0x1

source

pub fn m_activity(&mut self) -> M_ACTIVITY_W<'_, IC_INTR_MASK_SPEC>

Bit 8 - This bit masks the R_ACTIVITY interrupt in IC_INTR_STAT register.

Reset value: 0x0

source

pub fn m_stop_det(&mut self) -> M_STOP_DET_W<'_, IC_INTR_MASK_SPEC>

Bit 9 - This bit masks the R_STOP_DET interrupt in IC_INTR_STAT register.

Reset value: 0x0

source

pub fn m_start_det(&mut self) -> M_START_DET_W<'_, IC_INTR_MASK_SPEC>

Bit 10 - This bit masks the R_START_DET interrupt in IC_INTR_STAT register.

Reset value: 0x0

source

pub fn m_gen_call(&mut self) -> M_GEN_CALL_W<'_, IC_INTR_MASK_SPEC>

Bit 11 - This bit masks the R_GEN_CALL interrupt in IC_INTR_STAT register.

Reset value: 0x1

source

pub fn m_restart_det(&mut self) -> M_RESTART_DET_W<'_, IC_INTR_MASK_SPEC>

Bit 12 - This bit masks the R_RESTART_DET interrupt in IC_INTR_STAT register.

Reset value: 0x0

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