esp32p4/efuse/
int_clr.rs

1#[doc = "Register `INT_CLR` writer"]
2pub type W = crate::W<INT_CLR_SPEC>;
3#[doc = "Field `READ_DONE` writer - The clear signal for read_done interrupt."]
4pub type READ_DONE_W<'a, REG> = crate::BitWriter1C<'a, REG>;
5#[doc = "Field `PGM_DONE` writer - The clear signal for pgm_done interrupt."]
6pub type PGM_DONE_W<'a, REG> = crate::BitWriter1C<'a, REG>;
7#[cfg(feature = "impl-register-debug")]
8impl core::fmt::Debug for crate::generic::Reg<INT_CLR_SPEC> {
9    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
10        write!(f, "(not readable)")
11    }
12}
13impl W {
14    #[doc = "Bit 0 - The clear signal for read_done interrupt."]
15    #[inline(always)]
16    #[must_use]
17    pub fn read_done(&mut self) -> READ_DONE_W<INT_CLR_SPEC> {
18        READ_DONE_W::new(self, 0)
19    }
20    #[doc = "Bit 1 - The clear signal for pgm_done interrupt."]
21    #[inline(always)]
22    #[must_use]
23    pub fn pgm_done(&mut self) -> PGM_DONE_W<INT_CLR_SPEC> {
24        PGM_DONE_W::new(self, 1)
25    }
26}
27#[doc = "eFuse interrupt clear register.\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_clr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
28pub struct INT_CLR_SPEC;
29impl crate::RegisterSpec for INT_CLR_SPEC {
30    type Ux = u32;
31}
32#[doc = "`write(|w| ..)` method takes [`int_clr::W`](W) writer structure"]
33impl crate::Writable for INT_CLR_SPEC {
34    type Safety = crate::Unsafe;
35    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
36    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0x03;
37}
38#[doc = "`reset()` method sets INT_CLR to value 0"]
39impl crate::Resettable for INT_CLR_SPEC {
40    const RESET_VALUE: u32 = 0;
41}