esp32c6 0.2.0

Peripheral access crate for the ESP32-C6
Documentation
#[doc = "Register `M2_EXCEPTION_INFO0` reader"]
pub struct R(crate::R<M2_EXCEPTION_INFO0_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<M2_EXCEPTION_INFO0_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<M2_EXCEPTION_INFO0_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<M2_EXCEPTION_INFO0_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Field `M2_EXCEPTION_REGION` reader - Exception region"]
pub type M2_EXCEPTION_REGION_R = crate::FieldReader<u16, u16>;
#[doc = "Field `M2_EXCEPTION_MODE` reader - Exception mode"]
pub type M2_EXCEPTION_MODE_R = crate::FieldReader<u8, u8>;
#[doc = "Field `M2_EXCEPTION_ID` reader - Exception id information"]
pub type M2_EXCEPTION_ID_R = crate::FieldReader<u8, u8>;
impl R {
    #[doc = "Bits 0:15 - Exception region"]
    #[inline(always)]
    pub fn m2_exception_region(&self) -> M2_EXCEPTION_REGION_R {
        M2_EXCEPTION_REGION_R::new((self.bits & 0xffff) as u16)
    }
    #[doc = "Bits 16:17 - Exception mode"]
    #[inline(always)]
    pub fn m2_exception_mode(&self) -> M2_EXCEPTION_MODE_R {
        M2_EXCEPTION_MODE_R::new(((self.bits >> 16) & 3) as u8)
    }
    #[doc = "Bits 18:22 - Exception id information"]
    #[inline(always)]
    pub fn m2_exception_id(&self) -> M2_EXCEPTION_ID_R {
        M2_EXCEPTION_ID_R::new(((self.bits >> 18) & 0x1f) as u8)
    }
}
#[doc = "M2 exception_info0 register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [m2_exception_info0](index.html) module"]
pub struct M2_EXCEPTION_INFO0_SPEC;
impl crate::RegisterSpec for M2_EXCEPTION_INFO0_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [m2_exception_info0::R](R) reader structure"]
impl crate::Readable for M2_EXCEPTION_INFO0_SPEC {
    type Reader = R;
}
#[doc = "`reset()` method sets M2_EXCEPTION_INFO0 to value 0"]
impl crate::Resettable for M2_EXCEPTION_INFO0_SPEC {
    const RESET_VALUE: Self::Ux = 0;
}