bl702_pac/mjpeg/
mjpeg_frame_fifo_pop.rs1#[doc = "Register `mjpeg_frame_fifo_pop` reader"]
2pub struct R(crate::R<MJPEG_FRAME_FIFO_POP_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<MJPEG_FRAME_FIFO_POP_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<MJPEG_FRAME_FIFO_POP_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<MJPEG_FRAME_FIFO_POP_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `mjpeg_frame_fifo_pop` writer"]
17pub struct W(crate::W<MJPEG_FRAME_FIFO_POP_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<MJPEG_FRAME_FIFO_POP_SPEC>;
20 #[inline(always)]
21 fn deref(&self) -> &Self::Target {
22 &self.0
23 }
24}
25impl core::ops::DerefMut for W {
26 #[inline(always)]
27 fn deref_mut(&mut self) -> &mut Self::Target {
28 &mut self.0
29 }
30}
31impl From<crate::W<MJPEG_FRAME_FIFO_POP_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<MJPEG_FRAME_FIFO_POP_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `rfifo_pop` reader - "]
38pub type RFIFO_POP_R = crate::BitReader<bool>;
39#[doc = "Field `rfifo_pop` writer - "]
40pub type RFIFO_POP_W<'a, const O: u8> =
41 crate::BitWriter<'a, u32, MJPEG_FRAME_FIFO_POP_SPEC, bool, O>;
42#[doc = "Field `reg_w_swap_clr` reader - "]
43pub type REG_W_SWAP_CLR_R = crate::BitReader<bool>;
44#[doc = "Field `reg_w_swap_clr` writer - "]
45pub type REG_W_SWAP_CLR_W<'a, const O: u8> =
46 crate::BitWriter<'a, u32, MJPEG_FRAME_FIFO_POP_SPEC, bool, O>;
47#[doc = "Field `reg_int_normal_clr` reader - "]
48pub type REG_INT_NORMAL_CLR_R = crate::BitReader<bool>;
49#[doc = "Field `reg_int_normal_clr` writer - "]
50pub type REG_INT_NORMAL_CLR_W<'a, const O: u8> =
51 crate::BitWriter<'a, u32, MJPEG_FRAME_FIFO_POP_SPEC, bool, O>;
52#[doc = "Field `reg_int_cam_clr` reader - "]
53pub type REG_INT_CAM_CLR_R = crate::BitReader<bool>;
54#[doc = "Field `reg_int_cam_clr` writer - "]
55pub type REG_INT_CAM_CLR_W<'a, const O: u8> =
56 crate::BitWriter<'a, u32, MJPEG_FRAME_FIFO_POP_SPEC, bool, O>;
57#[doc = "Field `reg_int_mem_clr` reader - "]
58pub type REG_INT_MEM_CLR_R = crate::BitReader<bool>;
59#[doc = "Field `reg_int_mem_clr` writer - "]
60pub type REG_INT_MEM_CLR_W<'a, const O: u8> =
61 crate::BitWriter<'a, u32, MJPEG_FRAME_FIFO_POP_SPEC, bool, O>;
62#[doc = "Field `reg_int_frame_clr` reader - "]
63pub type REG_INT_FRAME_CLR_R = crate::BitReader<bool>;
64#[doc = "Field `reg_int_frame_clr` writer - "]
65pub type REG_INT_FRAME_CLR_W<'a, const O: u8> =
66 crate::BitWriter<'a, u32, MJPEG_FRAME_FIFO_POP_SPEC, bool, O>;
67#[doc = "Field `reg_int_idle_clr` reader - "]
68pub type REG_INT_IDLE_CLR_R = crate::BitReader<bool>;
69#[doc = "Field `reg_int_idle_clr` writer - "]
70pub type REG_INT_IDLE_CLR_W<'a, const O: u8> =
71 crate::BitWriter<'a, u32, MJPEG_FRAME_FIFO_POP_SPEC, bool, O>;
72#[doc = "Field `reg_int_swap_clr` reader - "]
73pub type REG_INT_SWAP_CLR_R = crate::BitReader<bool>;
74#[doc = "Field `reg_int_swap_clr` writer - "]
75pub type REG_INT_SWAP_CLR_W<'a, const O: u8> =
76 crate::BitWriter<'a, u32, MJPEG_FRAME_FIFO_POP_SPEC, bool, O>;
77impl R {
78 #[doc = "Bit 0"]
79 #[inline(always)]
80 pub fn rfifo_pop(&self) -> RFIFO_POP_R {
81 RFIFO_POP_R::new((self.bits & 1) != 0)
82 }
83 #[doc = "Bit 1"]
84 #[inline(always)]
85 pub fn reg_w_swap_clr(&self) -> REG_W_SWAP_CLR_R {
86 REG_W_SWAP_CLR_R::new(((self.bits >> 1) & 1) != 0)
87 }
88 #[doc = "Bit 8"]
89 #[inline(always)]
90 pub fn reg_int_normal_clr(&self) -> REG_INT_NORMAL_CLR_R {
91 REG_INT_NORMAL_CLR_R::new(((self.bits >> 8) & 1) != 0)
92 }
93 #[doc = "Bit 9"]
94 #[inline(always)]
95 pub fn reg_int_cam_clr(&self) -> REG_INT_CAM_CLR_R {
96 REG_INT_CAM_CLR_R::new(((self.bits >> 9) & 1) != 0)
97 }
98 #[doc = "Bit 10"]
99 #[inline(always)]
100 pub fn reg_int_mem_clr(&self) -> REG_INT_MEM_CLR_R {
101 REG_INT_MEM_CLR_R::new(((self.bits >> 10) & 1) != 0)
102 }
103 #[doc = "Bit 11"]
104 #[inline(always)]
105 pub fn reg_int_frame_clr(&self) -> REG_INT_FRAME_CLR_R {
106 REG_INT_FRAME_CLR_R::new(((self.bits >> 11) & 1) != 0)
107 }
108 #[doc = "Bit 12"]
109 #[inline(always)]
110 pub fn reg_int_idle_clr(&self) -> REG_INT_IDLE_CLR_R {
111 REG_INT_IDLE_CLR_R::new(((self.bits >> 12) & 1) != 0)
112 }
113 #[doc = "Bit 13"]
114 #[inline(always)]
115 pub fn reg_int_swap_clr(&self) -> REG_INT_SWAP_CLR_R {
116 REG_INT_SWAP_CLR_R::new(((self.bits >> 13) & 1) != 0)
117 }
118}
119impl W {
120 #[doc = "Bit 0"]
121 #[inline(always)]
122 #[must_use]
123 pub fn rfifo_pop(&mut self) -> RFIFO_POP_W<0> {
124 RFIFO_POP_W::new(self)
125 }
126 #[doc = "Bit 1"]
127 #[inline(always)]
128 #[must_use]
129 pub fn reg_w_swap_clr(&mut self) -> REG_W_SWAP_CLR_W<1> {
130 REG_W_SWAP_CLR_W::new(self)
131 }
132 #[doc = "Bit 8"]
133 #[inline(always)]
134 #[must_use]
135 pub fn reg_int_normal_clr(&mut self) -> REG_INT_NORMAL_CLR_W<8> {
136 REG_INT_NORMAL_CLR_W::new(self)
137 }
138 #[doc = "Bit 9"]
139 #[inline(always)]
140 #[must_use]
141 pub fn reg_int_cam_clr(&mut self) -> REG_INT_CAM_CLR_W<9> {
142 REG_INT_CAM_CLR_W::new(self)
143 }
144 #[doc = "Bit 10"]
145 #[inline(always)]
146 #[must_use]
147 pub fn reg_int_mem_clr(&mut self) -> REG_INT_MEM_CLR_W<10> {
148 REG_INT_MEM_CLR_W::new(self)
149 }
150 #[doc = "Bit 11"]
151 #[inline(always)]
152 #[must_use]
153 pub fn reg_int_frame_clr(&mut self) -> REG_INT_FRAME_CLR_W<11> {
154 REG_INT_FRAME_CLR_W::new(self)
155 }
156 #[doc = "Bit 12"]
157 #[inline(always)]
158 #[must_use]
159 pub fn reg_int_idle_clr(&mut self) -> REG_INT_IDLE_CLR_W<12> {
160 REG_INT_IDLE_CLR_W::new(self)
161 }
162 #[doc = "Bit 13"]
163 #[inline(always)]
164 #[must_use]
165 pub fn reg_int_swap_clr(&mut self) -> REG_INT_SWAP_CLR_W<13> {
166 REG_INT_SWAP_CLR_W::new(self)
167 }
168 #[doc = "Writes raw bits to the register."]
169 #[inline(always)]
170 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
171 self.0.bits(bits);
172 self
173 }
174}
175#[doc = "mjpeg_frame_fifo_pop.\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [mjpeg_frame_fifo_pop](index.html) module"]
176pub struct MJPEG_FRAME_FIFO_POP_SPEC;
177impl crate::RegisterSpec for MJPEG_FRAME_FIFO_POP_SPEC {
178 type Ux = u32;
179}
180#[doc = "`read()` method returns [mjpeg_frame_fifo_pop::R](R) reader structure"]
181impl crate::Readable for MJPEG_FRAME_FIFO_POP_SPEC {
182 type Reader = R;
183}
184#[doc = "`write(|w| ..)` method takes [mjpeg_frame_fifo_pop::W](W) writer structure"]
185impl crate::Writable for MJPEG_FRAME_FIFO_POP_SPEC {
186 type Writer = W;
187 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
188 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
189}
190#[doc = "`reset()` method sets mjpeg_frame_fifo_pop to value 0"]
191impl crate::Resettable for MJPEG_FRAME_FIFO_POP_SPEC {
192 const RESET_VALUE: Self::Ux = 0;
193}