bl702_pac/sf_ctrl/
sf_ctrl_3.rs1#[doc = "Register `sf_ctrl_3` reader"]
2pub struct R(crate::R<SF_CTRL_3_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<SF_CTRL_3_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<SF_CTRL_3_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<SF_CTRL_3_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `sf_ctrl_3` writer"]
17pub struct W(crate::W<SF_CTRL_3_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<SF_CTRL_3_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<SF_CTRL_3_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<SF_CTRL_3_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `sf_cmds_wrap_len` reader - "]
38pub type SF_CMDS_WRAP_LEN_R = crate::FieldReader<u8, u8>;
39#[doc = "Field `sf_cmds_wrap_len` writer - "]
40pub type SF_CMDS_WRAP_LEN_W<'a, const O: u8> =
41 crate::FieldWriter<'a, u32, SF_CTRL_3_SPEC, u8, u8, 4, O>;
42#[doc = "Field `sf_cmds_en` reader - "]
43pub type SF_CMDS_EN_R = crate::BitReader<bool>;
44#[doc = "Field `sf_cmds_en` writer - "]
45pub type SF_CMDS_EN_W<'a, const O: u8> = crate::BitWriter<'a, u32, SF_CTRL_3_SPEC, bool, O>;
46#[doc = "Field `sf_cmds_bt_dly` reader - "]
47pub type SF_CMDS_BT_DLY_R = crate::FieldReader<u8, u8>;
48#[doc = "Field `sf_cmds_bt_dly` writer - "]
49pub type SF_CMDS_BT_DLY_W<'a, const O: u8> =
50 crate::FieldWriter<'a, u32, SF_CTRL_3_SPEC, u8, u8, 3, O>;
51#[doc = "Field `sf_cmds_bt_en` reader - "]
52pub type SF_CMDS_BT_EN_R = crate::BitReader<bool>;
53#[doc = "Field `sf_cmds_bt_en` writer - "]
54pub type SF_CMDS_BT_EN_W<'a, const O: u8> = crate::BitWriter<'a, u32, SF_CTRL_3_SPEC, bool, O>;
55#[doc = "Field `sf_cmds_wrap_q_ini` reader - "]
56pub type SF_CMDS_WRAP_Q_INI_R = crate::BitReader<bool>;
57#[doc = "Field `sf_cmds_wrap_q_ini` writer - "]
58pub type SF_CMDS_WRAP_Q_INI_W<'a, const O: u8> = crate::BitWriter<'a, u32, SF_CTRL_3_SPEC, bool, O>;
59#[doc = "Field `sf_cmds_wrap_mode` reader - "]
60pub type SF_CMDS_WRAP_MODE_R = crate::BitReader<bool>;
61#[doc = "Field `sf_cmds_wrap_mode` writer - "]
62pub type SF_CMDS_WRAP_MODE_W<'a, const O: u8> = crate::BitWriter<'a, u32, SF_CTRL_3_SPEC, bool, O>;
63#[doc = "Field `sf_cmds_wrap_q` reader - "]
64pub type SF_CMDS_WRAP_Q_R = crate::BitReader<bool>;
65#[doc = "Field `sf_cmds_wrap_q` writer - "]
66pub type SF_CMDS_WRAP_Q_W<'a, const O: u8> = crate::BitWriter<'a, u32, SF_CTRL_3_SPEC, bool, O>;
67#[doc = "Field `sf_if_1_ack_lat` reader - "]
68pub type SF_IF_1_ACK_LAT_R = crate::FieldReader<u8, u8>;
69#[doc = "Field `sf_if_1_ack_lat` writer - "]
70pub type SF_IF_1_ACK_LAT_W<'a, const O: u8> =
71 crate::FieldWriter<'a, u32, SF_CTRL_3_SPEC, u8, u8, 3, O>;
72impl R {
73 #[doc = "Bits 0:3"]
74 #[inline(always)]
75 pub fn sf_cmds_wrap_len(&self) -> SF_CMDS_WRAP_LEN_R {
76 SF_CMDS_WRAP_LEN_R::new((self.bits & 0x0f) as u8)
77 }
78 #[doc = "Bit 4"]
79 #[inline(always)]
80 pub fn sf_cmds_en(&self) -> SF_CMDS_EN_R {
81 SF_CMDS_EN_R::new(((self.bits >> 4) & 1) != 0)
82 }
83 #[doc = "Bits 5:7"]
84 #[inline(always)]
85 pub fn sf_cmds_bt_dly(&self) -> SF_CMDS_BT_DLY_R {
86 SF_CMDS_BT_DLY_R::new(((self.bits >> 5) & 7) as u8)
87 }
88 #[doc = "Bit 8"]
89 #[inline(always)]
90 pub fn sf_cmds_bt_en(&self) -> SF_CMDS_BT_EN_R {
91 SF_CMDS_BT_EN_R::new(((self.bits >> 8) & 1) != 0)
92 }
93 #[doc = "Bit 9"]
94 #[inline(always)]
95 pub fn sf_cmds_wrap_q_ini(&self) -> SF_CMDS_WRAP_Q_INI_R {
96 SF_CMDS_WRAP_Q_INI_R::new(((self.bits >> 9) & 1) != 0)
97 }
98 #[doc = "Bit 10"]
99 #[inline(always)]
100 pub fn sf_cmds_wrap_mode(&self) -> SF_CMDS_WRAP_MODE_R {
101 SF_CMDS_WRAP_MODE_R::new(((self.bits >> 10) & 1) != 0)
102 }
103 #[doc = "Bit 11"]
104 #[inline(always)]
105 pub fn sf_cmds_wrap_q(&self) -> SF_CMDS_WRAP_Q_R {
106 SF_CMDS_WRAP_Q_R::new(((self.bits >> 11) & 1) != 0)
107 }
108 #[doc = "Bits 29:31"]
109 #[inline(always)]
110 pub fn sf_if_1_ack_lat(&self) -> SF_IF_1_ACK_LAT_R {
111 SF_IF_1_ACK_LAT_R::new(((self.bits >> 29) & 7) as u8)
112 }
113}
114impl W {
115 #[doc = "Bits 0:3"]
116 #[inline(always)]
117 #[must_use]
118 pub fn sf_cmds_wrap_len(&mut self) -> SF_CMDS_WRAP_LEN_W<0> {
119 SF_CMDS_WRAP_LEN_W::new(self)
120 }
121 #[doc = "Bit 4"]
122 #[inline(always)]
123 #[must_use]
124 pub fn sf_cmds_en(&mut self) -> SF_CMDS_EN_W<4> {
125 SF_CMDS_EN_W::new(self)
126 }
127 #[doc = "Bits 5:7"]
128 #[inline(always)]
129 #[must_use]
130 pub fn sf_cmds_bt_dly(&mut self) -> SF_CMDS_BT_DLY_W<5> {
131 SF_CMDS_BT_DLY_W::new(self)
132 }
133 #[doc = "Bit 8"]
134 #[inline(always)]
135 #[must_use]
136 pub fn sf_cmds_bt_en(&mut self) -> SF_CMDS_BT_EN_W<8> {
137 SF_CMDS_BT_EN_W::new(self)
138 }
139 #[doc = "Bit 9"]
140 #[inline(always)]
141 #[must_use]
142 pub fn sf_cmds_wrap_q_ini(&mut self) -> SF_CMDS_WRAP_Q_INI_W<9> {
143 SF_CMDS_WRAP_Q_INI_W::new(self)
144 }
145 #[doc = "Bit 10"]
146 #[inline(always)]
147 #[must_use]
148 pub fn sf_cmds_wrap_mode(&mut self) -> SF_CMDS_WRAP_MODE_W<10> {
149 SF_CMDS_WRAP_MODE_W::new(self)
150 }
151 #[doc = "Bit 11"]
152 #[inline(always)]
153 #[must_use]
154 pub fn sf_cmds_wrap_q(&mut self) -> SF_CMDS_WRAP_Q_W<11> {
155 SF_CMDS_WRAP_Q_W::new(self)
156 }
157 #[doc = "Bits 29:31"]
158 #[inline(always)]
159 #[must_use]
160 pub fn sf_if_1_ack_lat(&mut self) -> SF_IF_1_ACK_LAT_W<29> {
161 SF_IF_1_ACK_LAT_W::new(self)
162 }
163 #[doc = "Writes raw bits to the register."]
164 #[inline(always)]
165 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
166 self.0.bits(bits);
167 self
168 }
169}
170#[doc = "sf_ctrl_3.\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 [sf_ctrl_3](index.html) module"]
171pub struct SF_CTRL_3_SPEC;
172impl crate::RegisterSpec for SF_CTRL_3_SPEC {
173 type Ux = u32;
174}
175#[doc = "`read()` method returns [sf_ctrl_3::R](R) reader structure"]
176impl crate::Readable for SF_CTRL_3_SPEC {
177 type Reader = R;
178}
179#[doc = "`write(|w| ..)` method takes [sf_ctrl_3::W](W) writer structure"]
180impl crate::Writable for SF_CTRL_3_SPEC {
181 type Writer = W;
182 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
183 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
184}
185#[doc = "`reset()` method sets sf_ctrl_3 to value 0"]
186impl crate::Resettable for SF_CTRL_3_SPEC {
187 const RESET_VALUE: Self::Ux = 0;
188}