esp32p4/lp_huk/
int_clr.rs1#[doc = "Register `INT_CLR` writer"]
2pub type W = crate::W<INT_CLR_SPEC>;
3#[doc = "Field `PREP_DONE_INT_CLR` writer - Set this bit to clear the huk_prep_done_int interrupt"]
4pub type PREP_DONE_INT_CLR_W<'a, REG> = crate::BitWriter<'a, REG>;
5#[doc = "Field `PROC_DONE_INT_CLR` writer - Set this bit to clear the huk_proc_done_int interrupt"]
6pub type PROC_DONE_INT_CLR_W<'a, REG> = crate::BitWriter<'a, REG>;
7#[doc = "Field `POST_DONE_INT_CLR` writer - Set this bit to clear the huk_post_done_int interrupt"]
8pub type POST_DONE_INT_CLR_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[cfg(feature = "impl-register-debug")]
10impl core::fmt::Debug for crate::generic::Reg<INT_CLR_SPEC> {
11 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
12 write!(f, "(not readable)")
13 }
14}
15impl W {
16 #[doc = "Bit 0 - Set this bit to clear the huk_prep_done_int interrupt"]
17 #[inline(always)]
18 #[must_use]
19 pub fn prep_done_int_clr(&mut self) -> PREP_DONE_INT_CLR_W<INT_CLR_SPEC> {
20 PREP_DONE_INT_CLR_W::new(self, 0)
21 }
22 #[doc = "Bit 1 - Set this bit to clear the huk_proc_done_int interrupt"]
23 #[inline(always)]
24 #[must_use]
25 pub fn proc_done_int_clr(&mut self) -> PROC_DONE_INT_CLR_W<INT_CLR_SPEC> {
26 PROC_DONE_INT_CLR_W::new(self, 1)
27 }
28 #[doc = "Bit 2 - Set this bit to clear the huk_post_done_int interrupt"]
29 #[inline(always)]
30 #[must_use]
31 pub fn post_done_int_clr(&mut self) -> POST_DONE_INT_CLR_W<INT_CLR_SPEC> {
32 POST_DONE_INT_CLR_W::new(self, 2)
33 }
34}
35#[doc = "HUK Generator 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)."]
36pub struct INT_CLR_SPEC;
37impl crate::RegisterSpec for INT_CLR_SPEC {
38 type Ux = u32;
39}
40#[doc = "`write(|w| ..)` method takes [`int_clr::W`](W) writer structure"]
41impl crate::Writable for INT_CLR_SPEC {
42 type Safety = crate::Unsafe;
43 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
44 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
45}
46#[doc = "`reset()` method sets INT_CLR to value 0"]
47impl crate::Resettable for INT_CLR_SPEC {
48 const RESET_VALUE: u32 = 0;
49}