esp32h2 0.4.0

Peripheral access crate for the ESP32-H2
Documentation
#[doc = "Register `MULT_INT_ENA` reader"]
pub type R = crate::R<MULT_INT_ENA_SPEC>;
#[doc = "Register `MULT_INT_ENA` writer"]
pub type W = crate::W<MULT_INT_ENA_SPEC>;
#[doc = "Field `CALC_DONE_INT_ENA` reader - The interrupt enable bit for the ecc_calc_done_int interrupt"]
pub type CALC_DONE_INT_ENA_R = crate::BitReader;
#[doc = "Field `CALC_DONE_INT_ENA` writer - The interrupt enable bit for the ecc_calc_done_int interrupt"]
pub type CALC_DONE_INT_ENA_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
impl R {
    #[doc = "Bit 0 - The interrupt enable bit for the ecc_calc_done_int interrupt"]
    #[inline(always)]
    pub fn calc_done_int_ena(&self) -> CALC_DONE_INT_ENA_R {
        CALC_DONE_INT_ENA_R::new((self.bits & 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("MULT_INT_ENA")
            .field(
                "calc_done_int_ena",
                &format_args!("{}", self.calc_done_int_ena().bit()),
            )
            .finish()
    }
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for crate::generic::Reg<MULT_INT_ENA_SPEC> {
    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
        self.read().fmt(f)
    }
}
impl W {
    #[doc = "Bit 0 - The interrupt enable bit for the ecc_calc_done_int interrupt"]
    #[inline(always)]
    #[must_use]
    pub fn calc_done_int_ena(&mut self) -> CALC_DONE_INT_ENA_W<MULT_INT_ENA_SPEC, 0> {
        CALC_DONE_INT_ENA_W::new(self)
    }
    #[doc = r" Writes raw bits to the register."]
    #[doc = r""]
    #[doc = r" # Safety"]
    #[doc = r""]
    #[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
    #[inline(always)]
    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
        self.bits = bits;
        self
    }
}
#[doc = "ECC interrupt enable register.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mult_int_ena::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`mult_int_ena::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MULT_INT_ENA_SPEC;
impl crate::RegisterSpec for MULT_INT_ENA_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [`mult_int_ena::R`](R) reader structure"]
impl crate::Readable for MULT_INT_ENA_SPEC {}
#[doc = "`write(|w| ..)` method takes [`mult_int_ena::W`](W) writer structure"]
impl crate::Writable for MULT_INT_ENA_SPEC {
    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
}
#[doc = "`reset()` method sets MULT_INT_ENA to value 0"]
impl crate::Resettable for MULT_INT_ENA_SPEC {
    const RESET_VALUE: Self::Ux = 0;
}