efm32gg_pac/efm32gg230/dma/
ifs.rs1#[doc = "Register `IFS` writer"]
2pub struct W(crate::W<IFS_SPEC>);
3impl core::ops::Deref for W {
4 type Target = crate::W<IFS_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl core::ops::DerefMut for W {
11 #[inline(always)]
12 fn deref_mut(&mut self) -> &mut Self::Target {
13 &mut self.0
14 }
15}
16impl From<crate::W<IFS_SPEC>> for W {
17 #[inline(always)]
18 fn from(writer: crate::W<IFS_SPEC>) -> Self {
19 W(writer)
20 }
21}
22#[doc = "Field `CH0DONE` writer - DMA Channel 0 Complete Interrupt Flag Set"]
23pub type CH0DONE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
24#[doc = "Field `CH1DONE` writer - DMA Channel 1 Complete Interrupt Flag Set"]
25pub type CH1DONE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
26#[doc = "Field `CH2DONE` writer - DMA Channel 2 Complete Interrupt Flag Set"]
27pub type CH2DONE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
28#[doc = "Field `CH3DONE` writer - DMA Channel 3 Complete Interrupt Flag Set"]
29pub type CH3DONE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
30#[doc = "Field `CH4DONE` writer - DMA Channel 4 Complete Interrupt Flag Set"]
31pub type CH4DONE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
32#[doc = "Field `CH5DONE` writer - DMA Channel 5 Complete Interrupt Flag Set"]
33pub type CH5DONE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
34#[doc = "Field `CH6DONE` writer - DMA Channel 6 Complete Interrupt Flag Set"]
35pub type CH6DONE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
36#[doc = "Field `CH7DONE` writer - DMA Channel 7 Complete Interrupt Flag Set"]
37pub type CH7DONE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
38#[doc = "Field `CH8DONE` writer - DMA Channel 8 Complete Interrupt Flag Set"]
39pub type CH8DONE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
40#[doc = "Field `CH9DONE` writer - DMA Channel 9 Complete Interrupt Flag Set"]
41pub type CH9DONE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
42#[doc = "Field `CH10DONE` writer - DMA Channel 10 Complete Interrupt Flag Set"]
43pub type CH10DONE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
44#[doc = "Field `CH11DONE` writer - DMA Channel 11 Complete Interrupt Flag Set"]
45pub type CH11DONE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
46#[doc = "Field `ERR` writer - DMA Error Interrupt Flag Set"]
47pub type ERR_W<'a, const O: u8> = crate::BitWriter<'a, u32, IFS_SPEC, bool, O>;
48impl W {
49 #[doc = "Bit 0 - DMA Channel 0 Complete Interrupt Flag Set"]
50 #[inline(always)]
51 #[must_use]
52 pub fn ch0done(&mut self) -> CH0DONE_W<0> {
53 CH0DONE_W::new(self)
54 }
55 #[doc = "Bit 1 - DMA Channel 1 Complete Interrupt Flag Set"]
56 #[inline(always)]
57 #[must_use]
58 pub fn ch1done(&mut self) -> CH1DONE_W<1> {
59 CH1DONE_W::new(self)
60 }
61 #[doc = "Bit 2 - DMA Channel 2 Complete Interrupt Flag Set"]
62 #[inline(always)]
63 #[must_use]
64 pub fn ch2done(&mut self) -> CH2DONE_W<2> {
65 CH2DONE_W::new(self)
66 }
67 #[doc = "Bit 3 - DMA Channel 3 Complete Interrupt Flag Set"]
68 #[inline(always)]
69 #[must_use]
70 pub fn ch3done(&mut self) -> CH3DONE_W<3> {
71 CH3DONE_W::new(self)
72 }
73 #[doc = "Bit 4 - DMA Channel 4 Complete Interrupt Flag Set"]
74 #[inline(always)]
75 #[must_use]
76 pub fn ch4done(&mut self) -> CH4DONE_W<4> {
77 CH4DONE_W::new(self)
78 }
79 #[doc = "Bit 5 - DMA Channel 5 Complete Interrupt Flag Set"]
80 #[inline(always)]
81 #[must_use]
82 pub fn ch5done(&mut self) -> CH5DONE_W<5> {
83 CH5DONE_W::new(self)
84 }
85 #[doc = "Bit 6 - DMA Channel 6 Complete Interrupt Flag Set"]
86 #[inline(always)]
87 #[must_use]
88 pub fn ch6done(&mut self) -> CH6DONE_W<6> {
89 CH6DONE_W::new(self)
90 }
91 #[doc = "Bit 7 - DMA Channel 7 Complete Interrupt Flag Set"]
92 #[inline(always)]
93 #[must_use]
94 pub fn ch7done(&mut self) -> CH7DONE_W<7> {
95 CH7DONE_W::new(self)
96 }
97 #[doc = "Bit 8 - DMA Channel 8 Complete Interrupt Flag Set"]
98 #[inline(always)]
99 #[must_use]
100 pub fn ch8done(&mut self) -> CH8DONE_W<8> {
101 CH8DONE_W::new(self)
102 }
103 #[doc = "Bit 9 - DMA Channel 9 Complete Interrupt Flag Set"]
104 #[inline(always)]
105 #[must_use]
106 pub fn ch9done(&mut self) -> CH9DONE_W<9> {
107 CH9DONE_W::new(self)
108 }
109 #[doc = "Bit 10 - DMA Channel 10 Complete Interrupt Flag Set"]
110 #[inline(always)]
111 #[must_use]
112 pub fn ch10done(&mut self) -> CH10DONE_W<10> {
113 CH10DONE_W::new(self)
114 }
115 #[doc = "Bit 11 - DMA Channel 11 Complete Interrupt Flag Set"]
116 #[inline(always)]
117 #[must_use]
118 pub fn ch11done(&mut self) -> CH11DONE_W<11> {
119 CH11DONE_W::new(self)
120 }
121 #[doc = "Bit 31 - DMA Error Interrupt Flag Set"]
122 #[inline(always)]
123 #[must_use]
124 pub fn err(&mut self) -> ERR_W<31> {
125 ERR_W::new(self)
126 }
127 #[doc = "Writes raw bits to the register."]
128 #[inline(always)]
129 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
130 self.0.bits(bits);
131 self
132 }
133}
134#[doc = "Interrupt Flag Set Register\n\nThis register you can [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ifs](index.html) module"]
135pub struct IFS_SPEC;
136impl crate::RegisterSpec for IFS_SPEC {
137 type Ux = u32;
138}
139#[doc = "`write(|w| ..)` method takes [ifs::W](W) writer structure"]
140impl crate::Writable for IFS_SPEC {
141 type Writer = W;
142 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
143 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
144}
145#[doc = "`reset()` method sets IFS to value 0"]
146impl crate::Resettable for IFS_SPEC {
147 const RESET_VALUE: Self::Ux = 0;
148}