esp32c5 0.2.2

Peripheral access crate for the ESP32-C5
Documentation
#[doc = "Register `ED_ABORT_CNT` reader"]
pub type R = crate::R<ED_ABORT_CNT_SPEC>;
#[doc = "Register `ED_ABORT_CNT` writer"]
pub type W = crate::W<ED_ABORT_CNT_SPEC>;
#[doc = "Field `ED_ABORT_CNT` reader - "]
pub type ED_ABORT_CNT_R = crate::FieldReader<u16>;
#[doc = "Field `ED_ABORT_CNT` writer - "]
pub type ED_ABORT_CNT_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
impl R {
    #[doc = "Bits 0:15"]
    #[inline(always)]
    pub fn ed_abort_cnt(&self) -> ED_ABORT_CNT_R {
        ED_ABORT_CNT_R::new((self.bits & 0xffff) as u16)
    }
}
#[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("ED_ABORT_CNT")
            .field("ed_abort_cnt", &self.ed_abort_cnt())
            .finish()
    }
}
impl W {
    #[doc = "Bits 0:15"]
    #[inline(always)]
    pub fn ed_abort_cnt(&mut self) -> ED_ABORT_CNT_W<'_, ED_ABORT_CNT_SPEC> {
        ED_ABORT_CNT_W::new(self, 0)
    }
}
#[doc = "\n\nYou can [`read`](crate::Reg::read) this register and get [`ed_abort_cnt::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ed_abort_cnt::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct ED_ABORT_CNT_SPEC;
impl crate::RegisterSpec for ED_ABORT_CNT_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [`ed_abort_cnt::R`](R) reader structure"]
impl crate::Readable for ED_ABORT_CNT_SPEC {}
#[doc = "`write(|w| ..)` method takes [`ed_abort_cnt::W`](W) writer structure"]
impl crate::Writable for ED_ABORT_CNT_SPEC {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets ED_ABORT_CNT to value 0"]
impl crate::Resettable for ED_ABORT_CNT_SPEC {}