cyt3bb_a/m0/efuse/
seq_program_ctl_1.rs1#[doc = "Register `SEQ_PROGRAM_CTL_1` reader"]
2pub struct R(crate::R<SEQ_PROGRAM_CTL_1_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<SEQ_PROGRAM_CTL_1_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<SEQ_PROGRAM_CTL_1_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<SEQ_PROGRAM_CTL_1_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `SEQ_PROGRAM_CTL_1` writer"]
17pub struct W(crate::W<SEQ_PROGRAM_CTL_1_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<SEQ_PROGRAM_CTL_1_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<SEQ_PROGRAM_CTL_1_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<SEQ_PROGRAM_CTL_1_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `CYCLES` reader - Number of IP clock cycles (minus 1). This field is in the range of \\[0, 1023\\], allowing for a time of \\[1, 1024\\]
38IP clock cycles."]
39pub type CYCLES_R = crate::FieldReader<u16, u16>;
40#[doc = "Field `CYCLES` writer - Number of IP clock cycles (minus 1). This field is in the range of \\[0, 1023\\], allowing for a time of \\[1, 1024\\]
41IP clock cycles."]
42pub type CYCLES_W<'a, const O: u8> =
43 crate::FieldWriter<'a, u32, SEQ_PROGRAM_CTL_1_SPEC, u16, u16, 10, O>;
44#[doc = "Field `STROBE_A` reader - Specifies value of eFUSE control signal strobe_a"]
45pub type STROBE_A_R = crate::BitReader<bool>;
46#[doc = "Field `STROBE_A` writer - Specifies value of eFUSE control signal strobe_a"]
47pub type STROBE_A_W<'a, const O: u8> = crate::BitWriter<'a, u32, SEQ_PROGRAM_CTL_1_SPEC, bool, O>;
48#[doc = "Field `STROBE_B` reader - Specifies value of eFUSEcontrol signal strobe_b"]
49pub type STROBE_B_R = crate::BitReader<bool>;
50#[doc = "Field `STROBE_B` writer - Specifies value of eFUSEcontrol signal strobe_b"]
51pub type STROBE_B_W<'a, const O: u8> = crate::BitWriter<'a, u32, SEQ_PROGRAM_CTL_1_SPEC, bool, O>;
52#[doc = "Field `STROBE_C` reader - Specifies value of eFUSE control signal strobe_c"]
53pub type STROBE_C_R = crate::BitReader<bool>;
54#[doc = "Field `STROBE_C` writer - Specifies value of eFUSE control signal strobe_c"]
55pub type STROBE_C_W<'a, const O: u8> = crate::BitWriter<'a, u32, SEQ_PROGRAM_CTL_1_SPEC, bool, O>;
56#[doc = "Field `STROBE_D` reader - Specifies value of eFUSE control signal strobe_d"]
57pub type STROBE_D_R = crate::BitReader<bool>;
58#[doc = "Field `STROBE_D` writer - Specifies value of eFUSE control signal strobe_d"]
59pub type STROBE_D_W<'a, const O: u8> = crate::BitWriter<'a, u32, SEQ_PROGRAM_CTL_1_SPEC, bool, O>;
60#[doc = "Field `STROBE_E` reader - Specifies value of eFUSE control signal strobe_e"]
61pub type STROBE_E_R = crate::BitReader<bool>;
62#[doc = "Field `STROBE_E` writer - Specifies value of eFUSE control signal strobe_e"]
63pub type STROBE_E_W<'a, const O: u8> = crate::BitWriter<'a, u32, SEQ_PROGRAM_CTL_1_SPEC, bool, O>;
64#[doc = "Field `STROBE_F` reader - Specifies value of eFUSE control signal strobe_f"]
65pub type STROBE_F_R = crate::BitReader<bool>;
66#[doc = "Field `STROBE_F` writer - Specifies value of eFUSE control signal strobe_f"]
67pub type STROBE_F_W<'a, const O: u8> = crate::BitWriter<'a, u32, SEQ_PROGRAM_CTL_1_SPEC, bool, O>;
68#[doc = "Field `STROBE_G` reader - Specifies value of eFUSE control signal strobe_g"]
69pub type STROBE_G_R = crate::BitReader<bool>;
70#[doc = "Field `STROBE_G` writer - Specifies value of eFUSE control signal strobe_g"]
71pub type STROBE_G_W<'a, const O: u8> = crate::BitWriter<'a, u32, SEQ_PROGRAM_CTL_1_SPEC, bool, O>;
72#[doc = "Field `DONE` reader - When set to 1 indicates that the Read cycle ends when the current cycle count reaches 0."]
73pub type DONE_R = crate::BitReader<bool>;
74#[doc = "Field `DONE` writer - When set to 1 indicates that the Read cycle ends when the current cycle count reaches 0."]
75pub type DONE_W<'a, const O: u8> = crate::BitWriter<'a, u32, SEQ_PROGRAM_CTL_1_SPEC, bool, O>;
76impl R {
77 #[doc = "Bits 0:9 - Number of IP clock cycles (minus 1). This field is in the range of \\[0, 1023\\], allowing for a time of \\[1, 1024\\]
78IP clock cycles."]
79 #[inline(always)]
80 pub fn cycles(&self) -> CYCLES_R {
81 CYCLES_R::new((self.bits & 0x03ff) as u16)
82 }
83 #[doc = "Bit 16 - Specifies value of eFUSE control signal strobe_a"]
84 #[inline(always)]
85 pub fn strobe_a(&self) -> STROBE_A_R {
86 STROBE_A_R::new(((self.bits >> 16) & 1) != 0)
87 }
88 #[doc = "Bit 17 - Specifies value of eFUSEcontrol signal strobe_b"]
89 #[inline(always)]
90 pub fn strobe_b(&self) -> STROBE_B_R {
91 STROBE_B_R::new(((self.bits >> 17) & 1) != 0)
92 }
93 #[doc = "Bit 18 - Specifies value of eFUSE control signal strobe_c"]
94 #[inline(always)]
95 pub fn strobe_c(&self) -> STROBE_C_R {
96 STROBE_C_R::new(((self.bits >> 18) & 1) != 0)
97 }
98 #[doc = "Bit 19 - Specifies value of eFUSE control signal strobe_d"]
99 #[inline(always)]
100 pub fn strobe_d(&self) -> STROBE_D_R {
101 STROBE_D_R::new(((self.bits >> 19) & 1) != 0)
102 }
103 #[doc = "Bit 20 - Specifies value of eFUSE control signal strobe_e"]
104 #[inline(always)]
105 pub fn strobe_e(&self) -> STROBE_E_R {
106 STROBE_E_R::new(((self.bits >> 20) & 1) != 0)
107 }
108 #[doc = "Bit 21 - Specifies value of eFUSE control signal strobe_f"]
109 #[inline(always)]
110 pub fn strobe_f(&self) -> STROBE_F_R {
111 STROBE_F_R::new(((self.bits >> 21) & 1) != 0)
112 }
113 #[doc = "Bit 22 - Specifies value of eFUSE control signal strobe_g"]
114 #[inline(always)]
115 pub fn strobe_g(&self) -> STROBE_G_R {
116 STROBE_G_R::new(((self.bits >> 22) & 1) != 0)
117 }
118 #[doc = "Bit 31 - When set to 1 indicates that the Read cycle ends when the current cycle count reaches 0."]
119 #[inline(always)]
120 pub fn done(&self) -> DONE_R {
121 DONE_R::new(((self.bits >> 31) & 1) != 0)
122 }
123}
124impl W {
125 #[doc = "Bits 0:9 - Number of IP clock cycles (minus 1). This field is in the range of \\[0, 1023\\], allowing for a time of \\[1, 1024\\]
126IP clock cycles."]
127 #[inline(always)]
128 #[must_use]
129 pub fn cycles(&mut self) -> CYCLES_W<0> {
130 CYCLES_W::new(self)
131 }
132 #[doc = "Bit 16 - Specifies value of eFUSE control signal strobe_a"]
133 #[inline(always)]
134 #[must_use]
135 pub fn strobe_a(&mut self) -> STROBE_A_W<16> {
136 STROBE_A_W::new(self)
137 }
138 #[doc = "Bit 17 - Specifies value of eFUSEcontrol signal strobe_b"]
139 #[inline(always)]
140 #[must_use]
141 pub fn strobe_b(&mut self) -> STROBE_B_W<17> {
142 STROBE_B_W::new(self)
143 }
144 #[doc = "Bit 18 - Specifies value of eFUSE control signal strobe_c"]
145 #[inline(always)]
146 #[must_use]
147 pub fn strobe_c(&mut self) -> STROBE_C_W<18> {
148 STROBE_C_W::new(self)
149 }
150 #[doc = "Bit 19 - Specifies value of eFUSE control signal strobe_d"]
151 #[inline(always)]
152 #[must_use]
153 pub fn strobe_d(&mut self) -> STROBE_D_W<19> {
154 STROBE_D_W::new(self)
155 }
156 #[doc = "Bit 20 - Specifies value of eFUSE control signal strobe_e"]
157 #[inline(always)]
158 #[must_use]
159 pub fn strobe_e(&mut self) -> STROBE_E_W<20> {
160 STROBE_E_W::new(self)
161 }
162 #[doc = "Bit 21 - Specifies value of eFUSE control signal strobe_f"]
163 #[inline(always)]
164 #[must_use]
165 pub fn strobe_f(&mut self) -> STROBE_F_W<21> {
166 STROBE_F_W::new(self)
167 }
168 #[doc = "Bit 22 - Specifies value of eFUSE control signal strobe_g"]
169 #[inline(always)]
170 #[must_use]
171 pub fn strobe_g(&mut self) -> STROBE_G_W<22> {
172 STROBE_G_W::new(self)
173 }
174 #[doc = "Bit 31 - When set to 1 indicates that the Read cycle ends when the current cycle count reaches 0."]
175 #[inline(always)]
176 #[must_use]
177 pub fn done(&mut self) -> DONE_W<31> {
178 DONE_W::new(self)
179 }
180 #[doc = "Writes raw bits to the register."]
181 #[inline(always)]
182 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
183 self.0.bits(bits);
184 self
185 }
186}
187#[doc = "Sequencer program control 1\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 [seq_program_ctl_1](index.html) module"]
188pub struct SEQ_PROGRAM_CTL_1_SPEC;
189impl crate::RegisterSpec for SEQ_PROGRAM_CTL_1_SPEC {
190 type Ux = u32;
191}
192#[doc = "`read()` method returns [seq_program_ctl_1::R](R) reader structure"]
193impl crate::Readable for SEQ_PROGRAM_CTL_1_SPEC {
194 type Reader = R;
195}
196#[doc = "`write(|w| ..)` method takes [seq_program_ctl_1::W](W) writer structure"]
197impl crate::Writable for SEQ_PROGRAM_CTL_1_SPEC {
198 type Writer = W;
199 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
200 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
201}
202#[doc = "`reset()` method sets SEQ_PROGRAM_CTL_1 to value 0x0022_0020"]
203impl crate::Resettable for SEQ_PROGRAM_CTL_1_SPEC {
204 const RESET_VALUE: Self::Ux = 0x0022_0020;
205}