1#[doc = "Register `rbb_rx` reader"]
2pub struct R(crate::R<RBB_RX_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<RBB_RX_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<RBB_RX_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<RBB_RX_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `rbb_rx` writer"]
17pub struct W(crate::W<RBB_RX_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<RBB_RX_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<RBB_RX_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<RBB_RX_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `rbb_rx2_bw1` reader - "]
38pub type RBB_RX2_BW1_R = crate::FieldReader<u8, u8>;
39#[doc = "Field `rbb_rx2_bw1` writer - "]
40pub type RBB_RX2_BW1_W<'a, const O: u8> = crate::FieldWriter<'a, u32, RBB_RX_SPEC, u8, u8, 3, O>;
41#[doc = "Field `rbb_rx1_bw1` reader - "]
42pub type RBB_RX1_BW1_R = crate::FieldReader<u8, u8>;
43#[doc = "Field `rbb_rx1_bw1` writer - "]
44pub type RBB_RX1_BW1_W<'a, const O: u8> = crate::FieldWriter<'a, u32, RBB_RX_SPEC, u8, u8, 3, O>;
45#[doc = "Field `rbb_rx2_bw0` reader - "]
46pub type RBB_RX2_BW0_R = crate::FieldReader<u8, u8>;
47#[doc = "Field `rbb_rx2_bw0` writer - "]
48pub type RBB_RX2_BW0_W<'a, const O: u8> = crate::FieldWriter<'a, u32, RBB_RX_SPEC, u8, u8, 3, O>;
49#[doc = "Field `rbb_rx1_bw0` reader - "]
50pub type RBB_RX1_BW0_R = crate::FieldReader<u8, u8>;
51#[doc = "Field `rbb_rx1_bw0` writer - "]
52pub type RBB_RX1_BW0_W<'a, const O: u8> = crate::FieldWriter<'a, u32, RBB_RX_SPEC, u8, u8, 3, O>;
53#[doc = "Field `rbb_rx2_hw` reader - "]
54pub type RBB_RX2_HW_R = crate::FieldReader<u8, u8>;
55#[doc = "Field `rbb_rx2_hw` writer - "]
56pub type RBB_RX2_HW_W<'a, const O: u8> = crate::FieldWriter<'a, u32, RBB_RX_SPEC, u8, u8, 3, O>;
57#[doc = "Field `rbb_rx1_hw` reader - "]
58pub type RBB_RX1_HW_R = crate::FieldReader<u8, u8>;
59#[doc = "Field `rbb_rx1_hw` writer - "]
60pub type RBB_RX1_HW_W<'a, const O: u8> = crate::FieldWriter<'a, u32, RBB_RX_SPEC, u8, u8, 3, O>;
61#[doc = "Field `rbb_rx2` reader - "]
62pub type RBB_RX2_R = crate::FieldReader<u8, u8>;
63#[doc = "Field `rbb_rx2` writer - "]
64pub type RBB_RX2_W<'a, const O: u8> = crate::FieldWriter<'a, u32, RBB_RX_SPEC, u8, u8, 3, O>;
65#[doc = "Field `rbb_rx1` reader - "]
66pub type RBB_RX1_R = crate::FieldReader<u8, u8>;
67#[doc = "Field `rbb_rx1` writer - "]
68pub type RBB_RX1_W<'a, const O: u8> = crate::FieldWriter<'a, u32, RBB_RX_SPEC, u8, u8, 3, O>;
69impl R {
70 #[doc = "Bits 0:2"]
71 #[inline(always)]
72 pub fn rbb_rx2_bw1(&self) -> RBB_RX2_BW1_R {
73 RBB_RX2_BW1_R::new((self.bits & 7) as u8)
74 }
75 #[doc = "Bits 4:6"]
76 #[inline(always)]
77 pub fn rbb_rx1_bw1(&self) -> RBB_RX1_BW1_R {
78 RBB_RX1_BW1_R::new(((self.bits >> 4) & 7) as u8)
79 }
80 #[doc = "Bits 8:10"]
81 #[inline(always)]
82 pub fn rbb_rx2_bw0(&self) -> RBB_RX2_BW0_R {
83 RBB_RX2_BW0_R::new(((self.bits >> 8) & 7) as u8)
84 }
85 #[doc = "Bits 12:14"]
86 #[inline(always)]
87 pub fn rbb_rx1_bw0(&self) -> RBB_RX1_BW0_R {
88 RBB_RX1_BW0_R::new(((self.bits >> 12) & 7) as u8)
89 }
90 #[doc = "Bits 16:18"]
91 #[inline(always)]
92 pub fn rbb_rx2_hw(&self) -> RBB_RX2_HW_R {
93 RBB_RX2_HW_R::new(((self.bits >> 16) & 7) as u8)
94 }
95 #[doc = "Bits 20:22"]
96 #[inline(always)]
97 pub fn rbb_rx1_hw(&self) -> RBB_RX1_HW_R {
98 RBB_RX1_HW_R::new(((self.bits >> 20) & 7) as u8)
99 }
100 #[doc = "Bits 24:26"]
101 #[inline(always)]
102 pub fn rbb_rx2(&self) -> RBB_RX2_R {
103 RBB_RX2_R::new(((self.bits >> 24) & 7) as u8)
104 }
105 #[doc = "Bits 28:30"]
106 #[inline(always)]
107 pub fn rbb_rx1(&self) -> RBB_RX1_R {
108 RBB_RX1_R::new(((self.bits >> 28) & 7) as u8)
109 }
110}
111impl W {
112 #[doc = "Bits 0:2"]
113 #[inline(always)]
114 #[must_use]
115 pub fn rbb_rx2_bw1(&mut self) -> RBB_RX2_BW1_W<0> {
116 RBB_RX2_BW1_W::new(self)
117 }
118 #[doc = "Bits 4:6"]
119 #[inline(always)]
120 #[must_use]
121 pub fn rbb_rx1_bw1(&mut self) -> RBB_RX1_BW1_W<4> {
122 RBB_RX1_BW1_W::new(self)
123 }
124 #[doc = "Bits 8:10"]
125 #[inline(always)]
126 #[must_use]
127 pub fn rbb_rx2_bw0(&mut self) -> RBB_RX2_BW0_W<8> {
128 RBB_RX2_BW0_W::new(self)
129 }
130 #[doc = "Bits 12:14"]
131 #[inline(always)]
132 #[must_use]
133 pub fn rbb_rx1_bw0(&mut self) -> RBB_RX1_BW0_W<12> {
134 RBB_RX1_BW0_W::new(self)
135 }
136 #[doc = "Bits 16:18"]
137 #[inline(always)]
138 #[must_use]
139 pub fn rbb_rx2_hw(&mut self) -> RBB_RX2_HW_W<16> {
140 RBB_RX2_HW_W::new(self)
141 }
142 #[doc = "Bits 20:22"]
143 #[inline(always)]
144 #[must_use]
145 pub fn rbb_rx1_hw(&mut self) -> RBB_RX1_HW_W<20> {
146 RBB_RX1_HW_W::new(self)
147 }
148 #[doc = "Bits 24:26"]
149 #[inline(always)]
150 #[must_use]
151 pub fn rbb_rx2(&mut self) -> RBB_RX2_W<24> {
152 RBB_RX2_W::new(self)
153 }
154 #[doc = "Bits 28:30"]
155 #[inline(always)]
156 #[must_use]
157 pub fn rbb_rx1(&mut self) -> RBB_RX1_W<28> {
158 RBB_RX1_W::new(self)
159 }
160 #[doc = "Writes raw bits to the register."]
161 #[inline(always)]
162 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
163 self.0.bits(bits);
164 self
165 }
166}
167#[doc = "rbb_rx.\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 [rbb_rx](index.html) module"]
168pub struct RBB_RX_SPEC;
169impl crate::RegisterSpec for RBB_RX_SPEC {
170 type Ux = u32;
171}
172#[doc = "`read()` method returns [rbb_rx::R](R) reader structure"]
173impl crate::Readable for RBB_RX_SPEC {
174 type Reader = R;
175}
176#[doc = "`write(|w| ..)` method takes [rbb_rx::W](W) writer structure"]
177impl crate::Writable for RBB_RX_SPEC {
178 type Writer = W;
179 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
180 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
181}
182#[doc = "`reset()` method sets rbb_rx to value 0"]
183impl crate::Resettable for RBB_RX_SPEC {
184 const RESET_VALUE: Self::Ux = 0;
185}