esp32s2/copy_dma/
int_clr.rs1#[doc = "Register `INT_CLR` writer"]
2pub type W = crate::W<INT_CLR_SPEC>;
3#[doc = "Field `IN_DONE` writer - Set this bit to clear IN_DONE interrupt."]
4pub type IN_DONE_W<'a, REG> = crate::BitWriter1C<'a, REG>;
5#[doc = "Field `IN_SUC_EOF` writer - Set this bit to clear IN_SUC_EOF interrupt."]
6pub type IN_SUC_EOF_W<'a, REG> = crate::BitWriter1C<'a, REG>;
7#[doc = "Field `OUT_DONE` writer - Set this bit to clear OUT_DONE interrupt."]
8pub type OUT_DONE_W<'a, REG> = crate::BitWriter1C<'a, REG>;
9#[doc = "Field `OUT_EOF` writer - Set this bit to clear OUT_EOF interrupt."]
10pub type OUT_EOF_W<'a, REG> = crate::BitWriter1C<'a, REG>;
11#[doc = "Field `IN_DSCR_ERR` writer - Set this bit to clear IN_DSCR_ERR interrupt."]
12pub type IN_DSCR_ERR_W<'a, REG> = crate::BitWriter1C<'a, REG>;
13#[doc = "Field `OUT_DSCR_ERR` writer - Set this bit to clear OUT_DSCR_ERR interrupt."]
14pub type OUT_DSCR_ERR_W<'a, REG> = crate::BitWriter1C<'a, REG>;
15#[doc = "Field `IN_DSCR_EMPTY` writer - Set this bit to clear IN_DSCR_EMPTY interrupt."]
16pub type IN_DSCR_EMPTY_W<'a, REG> = crate::BitWriter1C<'a, REG>;
17#[doc = "Field `OUT_TOTAL_EOF` writer - Set this bit to clear OUT_TOTAL_EOF interrupt."]
18pub type OUT_TOTAL_EOF_W<'a, REG> = crate::BitWriter1C<'a, REG>;
19#[cfg(feature = "impl-register-debug")]
20impl core::fmt::Debug for crate::generic::Reg<INT_CLR_SPEC> {
21 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
22 write!(f, "(not readable)")
23 }
24}
25impl W {
26 #[doc = "Bit 0 - Set this bit to clear IN_DONE interrupt."]
27 #[inline(always)]
28 pub fn in_done(&mut self) -> IN_DONE_W<INT_CLR_SPEC> {
29 IN_DONE_W::new(self, 0)
30 }
31 #[doc = "Bit 1 - Set this bit to clear IN_SUC_EOF interrupt."]
32 #[inline(always)]
33 pub fn in_suc_eof(&mut self) -> IN_SUC_EOF_W<INT_CLR_SPEC> {
34 IN_SUC_EOF_W::new(self, 1)
35 }
36 #[doc = "Bit 2 - Set this bit to clear OUT_DONE interrupt."]
37 #[inline(always)]
38 pub fn out_done(&mut self) -> OUT_DONE_W<INT_CLR_SPEC> {
39 OUT_DONE_W::new(self, 2)
40 }
41 #[doc = "Bit 3 - Set this bit to clear OUT_EOF interrupt."]
42 #[inline(always)]
43 pub fn out_eof(&mut self) -> OUT_EOF_W<INT_CLR_SPEC> {
44 OUT_EOF_W::new(self, 3)
45 }
46 #[doc = "Bit 4 - Set this bit to clear IN_DSCR_ERR interrupt."]
47 #[inline(always)]
48 pub fn in_dscr_err(&mut self) -> IN_DSCR_ERR_W<INT_CLR_SPEC> {
49 IN_DSCR_ERR_W::new(self, 4)
50 }
51 #[doc = "Bit 5 - Set this bit to clear OUT_DSCR_ERR interrupt."]
52 #[inline(always)]
53 pub fn out_dscr_err(&mut self) -> OUT_DSCR_ERR_W<INT_CLR_SPEC> {
54 OUT_DSCR_ERR_W::new(self, 5)
55 }
56 #[doc = "Bit 6 - Set this bit to clear IN_DSCR_EMPTY interrupt."]
57 #[inline(always)]
58 pub fn in_dscr_empty(&mut self) -> IN_DSCR_EMPTY_W<INT_CLR_SPEC> {
59 IN_DSCR_EMPTY_W::new(self, 6)
60 }
61 #[doc = "Bit 7 - Set this bit to clear OUT_TOTAL_EOF interrupt."]
62 #[inline(always)]
63 pub fn out_total_eof(&mut self) -> OUT_TOTAL_EOF_W<INT_CLR_SPEC> {
64 OUT_TOTAL_EOF_W::new(self, 7)
65 }
66}
67#[doc = "Interrupt clear bits\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`int_clr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
68pub struct INT_CLR_SPEC;
69impl crate::RegisterSpec for INT_CLR_SPEC {
70 type Ux = u32;
71}
72#[doc = "`write(|w| ..)` method takes [`int_clr::W`](W) writer structure"]
73impl crate::Writable for INT_CLR_SPEC {
74 type Safety = crate::Unsafe;
75 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
76 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0xff;
77}
78#[doc = "`reset()` method sets INT_CLR to value 0"]
79impl crate::Resettable for INT_CLR_SPEC {
80 const RESET_VALUE: u32 = 0;
81}