esp32 0.28.0

Peripheral access crate for the ESP32
Documentation
#[doc = "Register `INT_RAW` reader"]
pub type R = crate::R<INT_RAW_SPEC>;
#[doc = "Field `HSTIMER0_OVF_INT_RAW` reader - The interrupt raw bit for high speed channel0 counter overflow."]
pub type HSTIMER0_OVF_INT_RAW_R = crate::BitReader;
#[doc = "Field `HSTIMER1_OVF_INT_RAW` reader - The interrupt raw bit for high speed channel1 counter overflow."]
pub type HSTIMER1_OVF_INT_RAW_R = crate::BitReader;
#[doc = "Field `HSTIMER2_OVF_INT_RAW` reader - The interrupt raw bit for high speed channel2 counter overflow."]
pub type HSTIMER2_OVF_INT_RAW_R = crate::BitReader;
#[doc = "Field `HSTIMER3_OVF_INT_RAW` reader - The interrupt raw bit for high speed channel3 counter overflow."]
pub type HSTIMER3_OVF_INT_RAW_R = crate::BitReader;
#[doc = "Field `LSTIMER0_OVF_INT_RAW` reader - The interrupt raw bit for low speed channel0 counter overflow."]
pub type LSTIMER0_OVF_INT_RAW_R = crate::BitReader;
#[doc = "Field `LSTIMER1_OVF_INT_RAW` reader - The interrupt raw bit for low speed channel1 counter overflow."]
pub type LSTIMER1_OVF_INT_RAW_R = crate::BitReader;
#[doc = "Field `LSTIMER2_OVF_INT_RAW` reader - The interrupt raw bit for low speed channel2 counter overflow."]
pub type LSTIMER2_OVF_INT_RAW_R = crate::BitReader;
#[doc = "Field `LSTIMER3_OVF_INT_RAW` reader - The interrupt raw bit for low speed channel3 counter overflow."]
pub type LSTIMER3_OVF_INT_RAW_R = crate::BitReader;
#[doc = "Field `DUTY_CHNG_END_HSCH0_INT_RAW` reader - The interrupt raw bit for high speed channel 0 duty change done."]
pub type DUTY_CHNG_END_HSCH0_INT_RAW_R = crate::BitReader;
#[doc = "Field `DUTY_CHNG_END_HSCH1_INT_RAW` reader - The interrupt raw bit for high speed channel 1 duty change done."]
pub type DUTY_CHNG_END_HSCH1_INT_RAW_R = crate::BitReader;
#[doc = "Field `DUTY_CHNG_END_HSCH2_INT_RAW` reader - The interrupt raw bit for high speed channel 2 duty change done."]
pub type DUTY_CHNG_END_HSCH2_INT_RAW_R = crate::BitReader;
#[doc = "Field `DUTY_CHNG_END_HSCH3_INT_RAW` reader - The interrupt raw bit for high speed channel 3 duty change done."]
pub type DUTY_CHNG_END_HSCH3_INT_RAW_R = crate::BitReader;
#[doc = "Field `DUTY_CHNG_END_HSCH4_INT_RAW` reader - The interrupt raw bit for high speed channel 4 duty change done."]
pub type DUTY_CHNG_END_HSCH4_INT_RAW_R = crate::BitReader;
#[doc = "Field `DUTY_CHNG_END_HSCH5_INT_RAW` reader - The interrupt raw bit for high speed channel 5 duty change done."]
pub type DUTY_CHNG_END_HSCH5_INT_RAW_R = crate::BitReader;
#[doc = "Field `DUTY_CHNG_END_HSCH6_INT_RAW` reader - The interrupt raw bit for high speed channel 6 duty change done."]
pub type DUTY_CHNG_END_HSCH6_INT_RAW_R = crate::BitReader;
#[doc = "Field `DUTY_CHNG_END_HSCH7_INT_RAW` reader - The interrupt raw bit for high speed channel 7 duty change done."]
pub type DUTY_CHNG_END_HSCH7_INT_RAW_R = crate::BitReader;
#[doc = "Field `DUTY_CHNG_END_LSCH0_INT_RAW` reader - The interrupt raw bit for low speed channel 0 duty change done."]
pub type DUTY_CHNG_END_LSCH0_INT_RAW_R = crate::BitReader;
#[doc = "Field `DUTY_CHNG_END_LSCH1_INT_RAW` reader - The interrupt raw bit for low speed channel 1 duty change done."]
pub type DUTY_CHNG_END_LSCH1_INT_RAW_R = crate::BitReader;
#[doc = "Field `DUTY_CHNG_END_LSCH2_INT_RAW` reader - The interrupt raw bit for low speed channel 2 duty change done."]
pub type DUTY_CHNG_END_LSCH2_INT_RAW_R = crate::BitReader;
#[doc = "Field `DUTY_CHNG_END_LSCH3_INT_RAW` reader - The interrupt raw bit for low speed channel 3 duty change done."]
pub type DUTY_CHNG_END_LSCH3_INT_RAW_R = crate::BitReader;
#[doc = "Field `DUTY_CHNG_END_LSCH4_INT_RAW` reader - The interrupt raw bit for low speed channel 4 duty change done."]
pub type DUTY_CHNG_END_LSCH4_INT_RAW_R = crate::BitReader;
#[doc = "Field `DUTY_CHNG_END_LSCH5_INT_RAW` reader - The interrupt raw bit for low speed channel 5 duty change done."]
pub type DUTY_CHNG_END_LSCH5_INT_RAW_R = crate::BitReader;
#[doc = "Field `DUTY_CHNG_END_LSCH6_INT_RAW` reader - The interrupt raw bit for low speed channel 6 duty change done."]
pub type DUTY_CHNG_END_LSCH6_INT_RAW_R = crate::BitReader;
#[doc = "Field `DUTY_CHNG_END_LSCH7_INT_RAW` reader - The interrupt raw bit for low speed channel 7 duty change done."]
pub type DUTY_CHNG_END_LSCH7_INT_RAW_R = crate::BitReader;
impl R {
    #[doc = "Bit 0 - The interrupt raw bit for high speed channel0 counter overflow."]
    #[inline(always)]
    pub fn hstimer0_ovf_int_raw(&self) -> HSTIMER0_OVF_INT_RAW_R {
        HSTIMER0_OVF_INT_RAW_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - The interrupt raw bit for high speed channel1 counter overflow."]
    #[inline(always)]
    pub fn hstimer1_ovf_int_raw(&self) -> HSTIMER1_OVF_INT_RAW_R {
        HSTIMER1_OVF_INT_RAW_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - The interrupt raw bit for high speed channel2 counter overflow."]
    #[inline(always)]
    pub fn hstimer2_ovf_int_raw(&self) -> HSTIMER2_OVF_INT_RAW_R {
        HSTIMER2_OVF_INT_RAW_R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - The interrupt raw bit for high speed channel3 counter overflow."]
    #[inline(always)]
    pub fn hstimer3_ovf_int_raw(&self) -> HSTIMER3_OVF_INT_RAW_R {
        HSTIMER3_OVF_INT_RAW_R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - The interrupt raw bit for low speed channel0 counter overflow."]
    #[inline(always)]
    pub fn lstimer0_ovf_int_raw(&self) -> LSTIMER0_OVF_INT_RAW_R {
        LSTIMER0_OVF_INT_RAW_R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - The interrupt raw bit for low speed channel1 counter overflow."]
    #[inline(always)]
    pub fn lstimer1_ovf_int_raw(&self) -> LSTIMER1_OVF_INT_RAW_R {
        LSTIMER1_OVF_INT_RAW_R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - The interrupt raw bit for low speed channel2 counter overflow."]
    #[inline(always)]
    pub fn lstimer2_ovf_int_raw(&self) -> LSTIMER2_OVF_INT_RAW_R {
        LSTIMER2_OVF_INT_RAW_R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - The interrupt raw bit for low speed channel3 counter overflow."]
    #[inline(always)]
    pub fn lstimer3_ovf_int_raw(&self) -> LSTIMER3_OVF_INT_RAW_R {
        LSTIMER3_OVF_INT_RAW_R::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bit 8 - The interrupt raw bit for high speed channel 0 duty change done."]
    #[inline(always)]
    pub fn duty_chng_end_hsch0_int_raw(&self) -> DUTY_CHNG_END_HSCH0_INT_RAW_R {
        DUTY_CHNG_END_HSCH0_INT_RAW_R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 9 - The interrupt raw bit for high speed channel 1 duty change done."]
    #[inline(always)]
    pub fn duty_chng_end_hsch1_int_raw(&self) -> DUTY_CHNG_END_HSCH1_INT_RAW_R {
        DUTY_CHNG_END_HSCH1_INT_RAW_R::new(((self.bits >> 9) & 1) != 0)
    }
    #[doc = "Bit 10 - The interrupt raw bit for high speed channel 2 duty change done."]
    #[inline(always)]
    pub fn duty_chng_end_hsch2_int_raw(&self) -> DUTY_CHNG_END_HSCH2_INT_RAW_R {
        DUTY_CHNG_END_HSCH2_INT_RAW_R::new(((self.bits >> 10) & 1) != 0)
    }
    #[doc = "Bit 11 - The interrupt raw bit for high speed channel 3 duty change done."]
    #[inline(always)]
    pub fn duty_chng_end_hsch3_int_raw(&self) -> DUTY_CHNG_END_HSCH3_INT_RAW_R {
        DUTY_CHNG_END_HSCH3_INT_RAW_R::new(((self.bits >> 11) & 1) != 0)
    }
    #[doc = "Bit 12 - The interrupt raw bit for high speed channel 4 duty change done."]
    #[inline(always)]
    pub fn duty_chng_end_hsch4_int_raw(&self) -> DUTY_CHNG_END_HSCH4_INT_RAW_R {
        DUTY_CHNG_END_HSCH4_INT_RAW_R::new(((self.bits >> 12) & 1) != 0)
    }
    #[doc = "Bit 13 - The interrupt raw bit for high speed channel 5 duty change done."]
    #[inline(always)]
    pub fn duty_chng_end_hsch5_int_raw(&self) -> DUTY_CHNG_END_HSCH5_INT_RAW_R {
        DUTY_CHNG_END_HSCH5_INT_RAW_R::new(((self.bits >> 13) & 1) != 0)
    }
    #[doc = "Bit 14 - The interrupt raw bit for high speed channel 6 duty change done."]
    #[inline(always)]
    pub fn duty_chng_end_hsch6_int_raw(&self) -> DUTY_CHNG_END_HSCH6_INT_RAW_R {
        DUTY_CHNG_END_HSCH6_INT_RAW_R::new(((self.bits >> 14) & 1) != 0)
    }
    #[doc = "Bit 15 - The interrupt raw bit for high speed channel 7 duty change done."]
    #[inline(always)]
    pub fn duty_chng_end_hsch7_int_raw(&self) -> DUTY_CHNG_END_HSCH7_INT_RAW_R {
        DUTY_CHNG_END_HSCH7_INT_RAW_R::new(((self.bits >> 15) & 1) != 0)
    }
    #[doc = "Bit 16 - The interrupt raw bit for low speed channel 0 duty change done."]
    #[inline(always)]
    pub fn duty_chng_end_lsch0_int_raw(&self) -> DUTY_CHNG_END_LSCH0_INT_RAW_R {
        DUTY_CHNG_END_LSCH0_INT_RAW_R::new(((self.bits >> 16) & 1) != 0)
    }
    #[doc = "Bit 17 - The interrupt raw bit for low speed channel 1 duty change done."]
    #[inline(always)]
    pub fn duty_chng_end_lsch1_int_raw(&self) -> DUTY_CHNG_END_LSCH1_INT_RAW_R {
        DUTY_CHNG_END_LSCH1_INT_RAW_R::new(((self.bits >> 17) & 1) != 0)
    }
    #[doc = "Bit 18 - The interrupt raw bit for low speed channel 2 duty change done."]
    #[inline(always)]
    pub fn duty_chng_end_lsch2_int_raw(&self) -> DUTY_CHNG_END_LSCH2_INT_RAW_R {
        DUTY_CHNG_END_LSCH2_INT_RAW_R::new(((self.bits >> 18) & 1) != 0)
    }
    #[doc = "Bit 19 - The interrupt raw bit for low speed channel 3 duty change done."]
    #[inline(always)]
    pub fn duty_chng_end_lsch3_int_raw(&self) -> DUTY_CHNG_END_LSCH3_INT_RAW_R {
        DUTY_CHNG_END_LSCH3_INT_RAW_R::new(((self.bits >> 19) & 1) != 0)
    }
    #[doc = "Bit 20 - The interrupt raw bit for low speed channel 4 duty change done."]
    #[inline(always)]
    pub fn duty_chng_end_lsch4_int_raw(&self) -> DUTY_CHNG_END_LSCH4_INT_RAW_R {
        DUTY_CHNG_END_LSCH4_INT_RAW_R::new(((self.bits >> 20) & 1) != 0)
    }
    #[doc = "Bit 21 - The interrupt raw bit for low speed channel 5 duty change done."]
    #[inline(always)]
    pub fn duty_chng_end_lsch5_int_raw(&self) -> DUTY_CHNG_END_LSCH5_INT_RAW_R {
        DUTY_CHNG_END_LSCH5_INT_RAW_R::new(((self.bits >> 21) & 1) != 0)
    }
    #[doc = "Bit 22 - The interrupt raw bit for low speed channel 6 duty change done."]
    #[inline(always)]
    pub fn duty_chng_end_lsch6_int_raw(&self) -> DUTY_CHNG_END_LSCH6_INT_RAW_R {
        DUTY_CHNG_END_LSCH6_INT_RAW_R::new(((self.bits >> 22) & 1) != 0)
    }
    #[doc = "Bit 23 - The interrupt raw bit for low speed channel 7 duty change done."]
    #[inline(always)]
    pub fn duty_chng_end_lsch7_int_raw(&self) -> DUTY_CHNG_END_LSCH7_INT_RAW_R {
        DUTY_CHNG_END_LSCH7_INT_RAW_R::new(((self.bits >> 23) & 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("INT_RAW")
            .field(
                "hstimer0_ovf_int_raw",
                &format_args!("{}", self.hstimer0_ovf_int_raw().bit()),
            )
            .field(
                "hstimer1_ovf_int_raw",
                &format_args!("{}", self.hstimer1_ovf_int_raw().bit()),
            )
            .field(
                "hstimer2_ovf_int_raw",
                &format_args!("{}", self.hstimer2_ovf_int_raw().bit()),
            )
            .field(
                "hstimer3_ovf_int_raw",
                &format_args!("{}", self.hstimer3_ovf_int_raw().bit()),
            )
            .field(
                "lstimer0_ovf_int_raw",
                &format_args!("{}", self.lstimer0_ovf_int_raw().bit()),
            )
            .field(
                "lstimer1_ovf_int_raw",
                &format_args!("{}", self.lstimer1_ovf_int_raw().bit()),
            )
            .field(
                "lstimer2_ovf_int_raw",
                &format_args!("{}", self.lstimer2_ovf_int_raw().bit()),
            )
            .field(
                "lstimer3_ovf_int_raw",
                &format_args!("{}", self.lstimer3_ovf_int_raw().bit()),
            )
            .field(
                "duty_chng_end_hsch0_int_raw",
                &format_args!("{}", self.duty_chng_end_hsch0_int_raw().bit()),
            )
            .field(
                "duty_chng_end_hsch1_int_raw",
                &format_args!("{}", self.duty_chng_end_hsch1_int_raw().bit()),
            )
            .field(
                "duty_chng_end_hsch2_int_raw",
                &format_args!("{}", self.duty_chng_end_hsch2_int_raw().bit()),
            )
            .field(
                "duty_chng_end_hsch3_int_raw",
                &format_args!("{}", self.duty_chng_end_hsch3_int_raw().bit()),
            )
            .field(
                "duty_chng_end_hsch4_int_raw",
                &format_args!("{}", self.duty_chng_end_hsch4_int_raw().bit()),
            )
            .field(
                "duty_chng_end_hsch5_int_raw",
                &format_args!("{}", self.duty_chng_end_hsch5_int_raw().bit()),
            )
            .field(
                "duty_chng_end_hsch6_int_raw",
                &format_args!("{}", self.duty_chng_end_hsch6_int_raw().bit()),
            )
            .field(
                "duty_chng_end_hsch7_int_raw",
                &format_args!("{}", self.duty_chng_end_hsch7_int_raw().bit()),
            )
            .field(
                "duty_chng_end_lsch0_int_raw",
                &format_args!("{}", self.duty_chng_end_lsch0_int_raw().bit()),
            )
            .field(
                "duty_chng_end_lsch1_int_raw",
                &format_args!("{}", self.duty_chng_end_lsch1_int_raw().bit()),
            )
            .field(
                "duty_chng_end_lsch2_int_raw",
                &format_args!("{}", self.duty_chng_end_lsch2_int_raw().bit()),
            )
            .field(
                "duty_chng_end_lsch3_int_raw",
                &format_args!("{}", self.duty_chng_end_lsch3_int_raw().bit()),
            )
            .field(
                "duty_chng_end_lsch4_int_raw",
                &format_args!("{}", self.duty_chng_end_lsch4_int_raw().bit()),
            )
            .field(
                "duty_chng_end_lsch5_int_raw",
                &format_args!("{}", self.duty_chng_end_lsch5_int_raw().bit()),
            )
            .field(
                "duty_chng_end_lsch6_int_raw",
                &format_args!("{}", self.duty_chng_end_lsch6_int_raw().bit()),
            )
            .field(
                "duty_chng_end_lsch7_int_raw",
                &format_args!("{}", self.duty_chng_end_lsch7_int_raw().bit()),
            )
            .finish()
    }
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for crate::generic::Reg<INT_RAW_SPEC> {
    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
        core::fmt::Debug::fmt(&self.read(), f)
    }
}
#[doc = "\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_raw::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_RAW_SPEC;
impl crate::RegisterSpec for INT_RAW_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [`int_raw::R`](R) reader structure"]
impl crate::Readable for INT_RAW_SPEC {}
#[doc = "`reset()` method sets INT_RAW to value 0"]
impl crate::Resettable for INT_RAW_SPEC {
    const RESET_VALUE: Self::Ux = 0;
}