d1_pac/csic/csic_top/
csic_mulf_int.rs1#[doc = "Register `csic_mulf_int` reader"]
2pub type R = crate::R<CSIC_MULF_INT_SPEC>;
3#[doc = "Register `csic_mulf_int` writer"]
4pub type W = crate::W<CSIC_MULF_INT_SPEC>;
5#[doc = "Field `mulf_done_en` reader - "]
6pub type MULF_DONE_EN_R = crate::BitReader;
7#[doc = "Field `mulf_done_en` writer - "]
8pub type MULF_DONE_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `mulf_err_en` reader - "]
10pub type MULF_ERR_EN_R = crate::BitReader;
11#[doc = "Field `mulf_err_en` writer - "]
12pub type MULF_ERR_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `mulf_done_pd` reader - "]
14pub type MULF_DONE_PD_R = crate::BitReader;
15#[doc = "Field `mulf_done_pd` writer - "]
16pub type MULF_DONE_PD_W<'a, REG> = crate::BitWriter1C<'a, REG>;
17#[doc = "Field `mulf_err_pd` reader - "]
18pub type MULF_ERR_PD_R = crate::BitReader;
19#[doc = "Field `mulf_err_pd` writer - "]
20pub type MULF_ERR_PD_W<'a, REG> = crate::BitWriter1C<'a, REG>;
21impl R {
22 #[doc = "Bit 0"]
23 #[inline(always)]
24 pub fn mulf_done_en(&self) -> MULF_DONE_EN_R {
25 MULF_DONE_EN_R::new((self.bits & 1) != 0)
26 }
27 #[doc = "Bit 1"]
28 #[inline(always)]
29 pub fn mulf_err_en(&self) -> MULF_ERR_EN_R {
30 MULF_ERR_EN_R::new(((self.bits >> 1) & 1) != 0)
31 }
32 #[doc = "Bit 16"]
33 #[inline(always)]
34 pub fn mulf_done_pd(&self) -> MULF_DONE_PD_R {
35 MULF_DONE_PD_R::new(((self.bits >> 16) & 1) != 0)
36 }
37 #[doc = "Bit 17"]
38 #[inline(always)]
39 pub fn mulf_err_pd(&self) -> MULF_ERR_PD_R {
40 MULF_ERR_PD_R::new(((self.bits >> 17) & 1) != 0)
41 }
42}
43impl W {
44 #[doc = "Bit 0"]
45 #[inline(always)]
46 #[must_use]
47 pub fn mulf_done_en(&mut self) -> MULF_DONE_EN_W<CSIC_MULF_INT_SPEC> {
48 MULF_DONE_EN_W::new(self, 0)
49 }
50 #[doc = "Bit 1"]
51 #[inline(always)]
52 #[must_use]
53 pub fn mulf_err_en(&mut self) -> MULF_ERR_EN_W<CSIC_MULF_INT_SPEC> {
54 MULF_ERR_EN_W::new(self, 1)
55 }
56 #[doc = "Bit 16"]
57 #[inline(always)]
58 #[must_use]
59 pub fn mulf_done_pd(&mut self) -> MULF_DONE_PD_W<CSIC_MULF_INT_SPEC> {
60 MULF_DONE_PD_W::new(self, 16)
61 }
62 #[doc = "Bit 17"]
63 #[inline(always)]
64 #[must_use]
65 pub fn mulf_err_pd(&mut self) -> MULF_ERR_PD_W<CSIC_MULF_INT_SPEC> {
66 MULF_ERR_PD_W::new(self, 17)
67 }
68 #[doc = r" Writes raw bits to the register."]
69 #[doc = r""]
70 #[doc = r" # Safety"]
71 #[doc = r""]
72 #[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
73 #[inline(always)]
74 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
75 self.bits = bits;
76 self
77 }
78}
79#[doc = "CSIC Multi-Frame Interrupt Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`csic_mulf_int::R`](R). You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`csic_mulf_int::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
80pub struct CSIC_MULF_INT_SPEC;
81impl crate::RegisterSpec for CSIC_MULF_INT_SPEC {
82 type Ux = u32;
83}
84#[doc = "`read()` method returns [`csic_mulf_int::R`](R) reader structure"]
85impl crate::Readable for CSIC_MULF_INT_SPEC {}
86#[doc = "`write(|w| ..)` method takes [`csic_mulf_int::W`](W) writer structure"]
87impl crate::Writable for CSIC_MULF_INT_SPEC {
88 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
89 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0x0003_0000;
90}
91#[doc = "`reset()` method sets csic_mulf_int to value 0"]
92impl crate::Resettable for CSIC_MULF_INT_SPEC {
93 const RESET_VALUE: Self::Ux = 0;
94}