esp32h2 0.19.2

Peripheral access crate for the ESP32-H2
Documentation
#[doc = "Register `M0_EXCEPTION_INFO0` reader"]
pub type R = crate::R<M0_EXCEPTION_INFO0_SPEC>;
#[doc = "Field `M0_EXCEPTION_REGION` reader - Exception region"]
pub type M0_EXCEPTION_REGION_R = crate::FieldReader;
#[doc = "Field `M0_EXCEPTION_MODE` reader - Exception mode"]
pub type M0_EXCEPTION_MODE_R = crate::FieldReader;
#[doc = "Field `M0_EXCEPTION_ID` reader - Exception id information"]
pub type M0_EXCEPTION_ID_R = crate::FieldReader;
impl R {
    #[doc = "Bits 0:3 - Exception region"]
    #[inline(always)]
    pub fn m0_exception_region(&self) -> M0_EXCEPTION_REGION_R {
        M0_EXCEPTION_REGION_R::new((self.bits & 0x0f) as u8)
    }
    #[doc = "Bits 16:17 - Exception mode"]
    #[inline(always)]
    pub fn m0_exception_mode(&self) -> M0_EXCEPTION_MODE_R {
        M0_EXCEPTION_MODE_R::new(((self.bits >> 16) & 3) as u8)
    }
    #[doc = "Bits 18:22 - Exception id information"]
    #[inline(always)]
    pub fn m0_exception_id(&self) -> M0_EXCEPTION_ID_R {
        M0_EXCEPTION_ID_R::new(((self.bits >> 18) & 0x1f) as u8)
    }
}
#[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("M0_EXCEPTION_INFO0")
            .field("m0_exception_region", &self.m0_exception_region())
            .field("m0_exception_mode", &self.m0_exception_mode())
            .field("m0_exception_id", &self.m0_exception_id())
            .finish()
    }
}
#[doc = "M0 exception_info0 register\n\nYou can [`read`](crate::Reg::read) this register and get [`m0_exception_info0::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct M0_EXCEPTION_INFO0_SPEC;
impl crate::RegisterSpec for M0_EXCEPTION_INFO0_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [`m0_exception_info0::R`](R) reader structure"]
impl crate::Readable for M0_EXCEPTION_INFO0_SPEC {}
#[doc = "`reset()` method sets M0_EXCEPTION_INFO0 to value 0"]
impl crate::Resettable for M0_EXCEPTION_INFO0_SPEC {}