esp32c5 0.2.2

Peripheral access crate for the ESP32-C5
Documentation
#[doc = "Register `SLC0INT_ST` reader"]
pub type R = crate::R<SLC0INT_ST_SPEC>;
#[doc = "Field `SDIO_SLC_FRHOST_BIT_INT_ST(0-7)` reader - The masked interrupt status of SLC_FRHOST_BITn_INT (n: 0-7)."]
pub type SDIO_SLC_FRHOST_BIT_INT_ST_R = crate::BitReader;
#[doc = "Field `SDIO_SLC0_RX_START_INT_ST` reader - The masked interrupt status of SLC0_RX_START_INT."]
pub type SDIO_SLC0_RX_START_INT_ST_R = crate::BitReader;
#[doc = "Field `SDIO_SLC0_TX_START_INT_ST` reader - The masked interrupt status of SLC0_TX_START_INT."]
pub type SDIO_SLC0_TX_START_INT_ST_R = crate::BitReader;
#[doc = "Field `SDIO_SLC0_RX_UDF_INT_ST` reader - The masked interrupt status of SLC0_RX_UDF_INT."]
pub type SDIO_SLC0_RX_UDF_INT_ST_R = crate::BitReader;
#[doc = "Field `SDIO_SLC0_TX_OVF_INT_ST` reader - The masked interrupt status of SLC0_TX_OVF_INT."]
pub type SDIO_SLC0_TX_OVF_INT_ST_R = crate::BitReader;
#[doc = "Field `SDIO_SLC0_TX_DONE_INT_ST` reader - The masked interrupt status of SLC0_TX_DONE_INT."]
pub type SDIO_SLC0_TX_DONE_INT_ST_R = crate::BitReader;
#[doc = "Field `SDIO_SLC0_TX_SUC_EOF_INT_ST` reader - The masked interrupt status of SLC0_TX_SUC_EOF_INT."]
pub type SDIO_SLC0_TX_SUC_EOF_INT_ST_R = crate::BitReader;
#[doc = "Field `SDIO_SLC0_RX_DONE_INT_ST` reader - The masked interrupt status of SLC0_RX_DONE_INT."]
pub type SDIO_SLC0_RX_DONE_INT_ST_R = crate::BitReader;
#[doc = "Field `SDIO_SLC0_RX_EOF_INT_ST` reader - The masked interrupt status of SLC0_RX_EOF_INT."]
pub type SDIO_SLC0_RX_EOF_INT_ST_R = crate::BitReader;
#[doc = "Field `SDIO_SLC0_TX_DSCR_ERR_INT_ST` reader - The masked interrupt status of SLC0_TX_DSCR_ERR_INT."]
pub type SDIO_SLC0_TX_DSCR_ERR_INT_ST_R = crate::BitReader;
#[doc = "Field `SDIO_SLC0_RX_DSCR_ERR_INT_ST` reader - The masked interrupt status of SLC0_RX_DSCR_ERR_INT."]
pub type SDIO_SLC0_RX_DSCR_ERR_INT_ST_R = crate::BitReader;
impl R {
    #[doc = "The masked interrupt status of SLC_FRHOST_BITn_INT (n: 0-7)."]
    #[doc = ""]
    #[doc = "<div class=\"warning\">`n` is number of field in register. `n == 0` corresponds to `SDIO_SLC_FRHOST_BIT0_INT_ST` field.</div>"]
    #[inline(always)]
    pub fn sdio_slc_frhost_bit_int_st(&self, n: u8) -> SDIO_SLC_FRHOST_BIT_INT_ST_R {
        #[allow(clippy::no_effect)]
        [(); 8][n as usize];
        SDIO_SLC_FRHOST_BIT_INT_ST_R::new(((self.bits >> n) & 1) != 0)
    }
    #[doc = "Iterator for array of:"]
    #[doc = "The masked interrupt status of SLC_FRHOST_BITn_INT (n: 0-7)."]
    #[inline(always)]
    pub fn sdio_slc_frhost_bit_int_st_iter(
        &self,
    ) -> impl Iterator<Item = SDIO_SLC_FRHOST_BIT_INT_ST_R> + '_ {
        (0..8).map(move |n| SDIO_SLC_FRHOST_BIT_INT_ST_R::new(((self.bits >> n) & 1) != 0))
    }
    #[doc = "Bit 0 - The masked interrupt status of SLC_FRHOST_BITn_INT (n: 0-7)."]
    #[inline(always)]
    pub fn sdio_slc_frhost_bit0_int_st(&self) -> SDIO_SLC_FRHOST_BIT_INT_ST_R {
        SDIO_SLC_FRHOST_BIT_INT_ST_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - The masked interrupt status of SLC_FRHOST_BITn_INT (n: 0-7)."]
    #[inline(always)]
    pub fn sdio_slc_frhost_bit1_int_st(&self) -> SDIO_SLC_FRHOST_BIT_INT_ST_R {
        SDIO_SLC_FRHOST_BIT_INT_ST_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - The masked interrupt status of SLC_FRHOST_BITn_INT (n: 0-7)."]
    #[inline(always)]
    pub fn sdio_slc_frhost_bit2_int_st(&self) -> SDIO_SLC_FRHOST_BIT_INT_ST_R {
        SDIO_SLC_FRHOST_BIT_INT_ST_R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - The masked interrupt status of SLC_FRHOST_BITn_INT (n: 0-7)."]
    #[inline(always)]
    pub fn sdio_slc_frhost_bit3_int_st(&self) -> SDIO_SLC_FRHOST_BIT_INT_ST_R {
        SDIO_SLC_FRHOST_BIT_INT_ST_R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - The masked interrupt status of SLC_FRHOST_BITn_INT (n: 0-7)."]
    #[inline(always)]
    pub fn sdio_slc_frhost_bit4_int_st(&self) -> SDIO_SLC_FRHOST_BIT_INT_ST_R {
        SDIO_SLC_FRHOST_BIT_INT_ST_R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - The masked interrupt status of SLC_FRHOST_BITn_INT (n: 0-7)."]
    #[inline(always)]
    pub fn sdio_slc_frhost_bit5_int_st(&self) -> SDIO_SLC_FRHOST_BIT_INT_ST_R {
        SDIO_SLC_FRHOST_BIT_INT_ST_R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - The masked interrupt status of SLC_FRHOST_BITn_INT (n: 0-7)."]
    #[inline(always)]
    pub fn sdio_slc_frhost_bit6_int_st(&self) -> SDIO_SLC_FRHOST_BIT_INT_ST_R {
        SDIO_SLC_FRHOST_BIT_INT_ST_R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - The masked interrupt status of SLC_FRHOST_BITn_INT (n: 0-7)."]
    #[inline(always)]
    pub fn sdio_slc_frhost_bit7_int_st(&self) -> SDIO_SLC_FRHOST_BIT_INT_ST_R {
        SDIO_SLC_FRHOST_BIT_INT_ST_R::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bit 8 - The masked interrupt status of SLC0_RX_START_INT."]
    #[inline(always)]
    pub fn sdio_slc0_rx_start_int_st(&self) -> SDIO_SLC0_RX_START_INT_ST_R {
        SDIO_SLC0_RX_START_INT_ST_R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 9 - The masked interrupt status of SLC0_TX_START_INT."]
    #[inline(always)]
    pub fn sdio_slc0_tx_start_int_st(&self) -> SDIO_SLC0_TX_START_INT_ST_R {
        SDIO_SLC0_TX_START_INT_ST_R::new(((self.bits >> 9) & 1) != 0)
    }
    #[doc = "Bit 10 - The masked interrupt status of SLC0_RX_UDF_INT."]
    #[inline(always)]
    pub fn sdio_slc0_rx_udf_int_st(&self) -> SDIO_SLC0_RX_UDF_INT_ST_R {
        SDIO_SLC0_RX_UDF_INT_ST_R::new(((self.bits >> 10) & 1) != 0)
    }
    #[doc = "Bit 11 - The masked interrupt status of SLC0_TX_OVF_INT."]
    #[inline(always)]
    pub fn sdio_slc0_tx_ovf_int_st(&self) -> SDIO_SLC0_TX_OVF_INT_ST_R {
        SDIO_SLC0_TX_OVF_INT_ST_R::new(((self.bits >> 11) & 1) != 0)
    }
    #[doc = "Bit 14 - The masked interrupt status of SLC0_TX_DONE_INT."]
    #[inline(always)]
    pub fn sdio_slc0_tx_done_int_st(&self) -> SDIO_SLC0_TX_DONE_INT_ST_R {
        SDIO_SLC0_TX_DONE_INT_ST_R::new(((self.bits >> 14) & 1) != 0)
    }
    #[doc = "Bit 15 - The masked interrupt status of SLC0_TX_SUC_EOF_INT."]
    #[inline(always)]
    pub fn sdio_slc0_tx_suc_eof_int_st(&self) -> SDIO_SLC0_TX_SUC_EOF_INT_ST_R {
        SDIO_SLC0_TX_SUC_EOF_INT_ST_R::new(((self.bits >> 15) & 1) != 0)
    }
    #[doc = "Bit 16 - The masked interrupt status of SLC0_RX_DONE_INT."]
    #[inline(always)]
    pub fn sdio_slc0_rx_done_int_st(&self) -> SDIO_SLC0_RX_DONE_INT_ST_R {
        SDIO_SLC0_RX_DONE_INT_ST_R::new(((self.bits >> 16) & 1) != 0)
    }
    #[doc = "Bit 17 - The masked interrupt status of SLC0_RX_EOF_INT."]
    #[inline(always)]
    pub fn sdio_slc0_rx_eof_int_st(&self) -> SDIO_SLC0_RX_EOF_INT_ST_R {
        SDIO_SLC0_RX_EOF_INT_ST_R::new(((self.bits >> 17) & 1) != 0)
    }
    #[doc = "Bit 19 - The masked interrupt status of SLC0_TX_DSCR_ERR_INT."]
    #[inline(always)]
    pub fn sdio_slc0_tx_dscr_err_int_st(&self) -> SDIO_SLC0_TX_DSCR_ERR_INT_ST_R {
        SDIO_SLC0_TX_DSCR_ERR_INT_ST_R::new(((self.bits >> 19) & 1) != 0)
    }
    #[doc = "Bit 20 - The masked interrupt status of SLC0_RX_DSCR_ERR_INT."]
    #[inline(always)]
    pub fn sdio_slc0_rx_dscr_err_int_st(&self) -> SDIO_SLC0_RX_DSCR_ERR_INT_ST_R {
        SDIO_SLC0_RX_DSCR_ERR_INT_ST_R::new(((self.bits >> 20) & 1) != 0)
    }
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("SLC0INT_ST")
            .field(
                "sdio_slc_frhost_bit0_int_st",
                &self.sdio_slc_frhost_bit0_int_st(),
            )
            .field(
                "sdio_slc_frhost_bit1_int_st",
                &self.sdio_slc_frhost_bit1_int_st(),
            )
            .field(
                "sdio_slc_frhost_bit2_int_st",
                &self.sdio_slc_frhost_bit2_int_st(),
            )
            .field(
                "sdio_slc_frhost_bit3_int_st",
                &self.sdio_slc_frhost_bit3_int_st(),
            )
            .field(
                "sdio_slc_frhost_bit4_int_st",
                &self.sdio_slc_frhost_bit4_int_st(),
            )
            .field(
                "sdio_slc_frhost_bit5_int_st",
                &self.sdio_slc_frhost_bit5_int_st(),
            )
            .field(
                "sdio_slc_frhost_bit6_int_st",
                &self.sdio_slc_frhost_bit6_int_st(),
            )
            .field(
                "sdio_slc_frhost_bit7_int_st",
                &self.sdio_slc_frhost_bit7_int_st(),
            )
            .field(
                "sdio_slc0_rx_start_int_st",
                &self.sdio_slc0_rx_start_int_st(),
            )
            .field(
                "sdio_slc0_tx_start_int_st",
                &self.sdio_slc0_tx_start_int_st(),
            )
            .field("sdio_slc0_rx_udf_int_st", &self.sdio_slc0_rx_udf_int_st())
            .field("sdio_slc0_tx_ovf_int_st", &self.sdio_slc0_tx_ovf_int_st())
            .field("sdio_slc0_tx_done_int_st", &self.sdio_slc0_tx_done_int_st())
            .field(
                "sdio_slc0_tx_suc_eof_int_st",
                &self.sdio_slc0_tx_suc_eof_int_st(),
            )
            .field("sdio_slc0_rx_done_int_st", &self.sdio_slc0_rx_done_int_st())
            .field("sdio_slc0_rx_eof_int_st", &self.sdio_slc0_rx_eof_int_st())
            .field(
                "sdio_slc0_tx_dscr_err_int_st",
                &self.sdio_slc0_tx_dscr_err_int_st(),
            )
            .field(
                "sdio_slc0_rx_dscr_err_int_st",
                &self.sdio_slc0_rx_dscr_err_int_st(),
            )
            .finish()
    }
}
#[doc = "SLC0 to slave masked interrupt status\n\nYou can [`read`](crate::Reg::read) this register and get [`slc0int_st::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SLC0INT_ST_SPEC;
impl crate::RegisterSpec for SLC0INT_ST_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [`slc0int_st::R`](R) reader structure"]
impl crate::Readable for SLC0INT_ST_SPEC {}
#[doc = "`reset()` method sets SLC0INT_ST to value 0"]
impl crate::Resettable for SLC0INT_ST_SPEC {}