cyt2bl_a/m0/efuse/
seq_default.rs

1#[doc = "Register `SEQ_DEFAULT` reader"]
2pub struct R(crate::R<SEQ_DEFAULT_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<SEQ_DEFAULT_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<SEQ_DEFAULT_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<SEQ_DEFAULT_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `SEQ_DEFAULT` writer"]
17pub struct W(crate::W<SEQ_DEFAULT_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<SEQ_DEFAULT_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_DEFAULT_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<SEQ_DEFAULT_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Field `STROBE_A` reader - Specifies value of eFUSE control signal strobe_f"]
38pub type STROBE_A_R = crate::BitReader<bool>;
39#[doc = "Field `STROBE_A` writer - Specifies value of eFUSE control signal strobe_f"]
40pub type STROBE_A_W<'a, const O: u8> = crate::BitWriter<'a, u32, SEQ_DEFAULT_SPEC, bool, O>;
41#[doc = "Field `STROBE_B` reader - Specifies value of eFUSEcontrol signal strobe_b"]
42pub type STROBE_B_R = crate::BitReader<bool>;
43#[doc = "Field `STROBE_B` writer - Specifies value of eFUSEcontrol signal strobe_b"]
44pub type STROBE_B_W<'a, const O: u8> = crate::BitWriter<'a, u32, SEQ_DEFAULT_SPEC, bool, O>;
45#[doc = "Field `STROBE_C` reader - Specifies value of eFUSE control signal strobe_c"]
46pub type STROBE_C_R = crate::BitReader<bool>;
47#[doc = "Field `STROBE_C` writer - Specifies value of eFUSE control signal strobe_c"]
48pub type STROBE_C_W<'a, const O: u8> = crate::BitWriter<'a, u32, SEQ_DEFAULT_SPEC, bool, O>;
49#[doc = "Field `STROBE_D` reader - Specifies value of eFUSE control signal strobe_d"]
50pub type STROBE_D_R = crate::BitReader<bool>;
51#[doc = "Field `STROBE_D` writer - Specifies value of eFUSE control signal strobe_d"]
52pub type STROBE_D_W<'a, const O: u8> = crate::BitWriter<'a, u32, SEQ_DEFAULT_SPEC, bool, O>;
53#[doc = "Field `STROBE_E` reader - Specifies value of eFUSE control signal strobe_e"]
54pub type STROBE_E_R = crate::BitReader<bool>;
55#[doc = "Field `STROBE_E` writer - Specifies value of eFUSE control signal strobe_e"]
56pub type STROBE_E_W<'a, const O: u8> = crate::BitWriter<'a, u32, SEQ_DEFAULT_SPEC, bool, O>;
57#[doc = "Field `STROBE_F` reader - Specifies value of eFUSE control signal strobe_f"]
58pub type STROBE_F_R = crate::BitReader<bool>;
59#[doc = "Field `STROBE_F` writer - Specifies value of eFUSE control signal strobe_f"]
60pub type STROBE_F_W<'a, const O: u8> = crate::BitWriter<'a, u32, SEQ_DEFAULT_SPEC, bool, O>;
61#[doc = "Field `STROBE_G` reader - Specifies value of eFUSE control signal strobe_g"]
62pub type STROBE_G_R = crate::BitReader<bool>;
63#[doc = "Field `STROBE_G` writer - Specifies value of eFUSE control signal strobe_g"]
64pub type STROBE_G_W<'a, const O: u8> = crate::BitWriter<'a, u32, SEQ_DEFAULT_SPEC, bool, O>;
65impl R {
66    #[doc = "Bit 16 - Specifies value of eFUSE control signal strobe_f"]
67    #[inline(always)]
68    pub fn strobe_a(&self) -> STROBE_A_R {
69        STROBE_A_R::new(((self.bits >> 16) & 1) != 0)
70    }
71    #[doc = "Bit 17 - Specifies value of eFUSEcontrol signal strobe_b"]
72    #[inline(always)]
73    pub fn strobe_b(&self) -> STROBE_B_R {
74        STROBE_B_R::new(((self.bits >> 17) & 1) != 0)
75    }
76    #[doc = "Bit 18 - Specifies value of eFUSE control signal strobe_c"]
77    #[inline(always)]
78    pub fn strobe_c(&self) -> STROBE_C_R {
79        STROBE_C_R::new(((self.bits >> 18) & 1) != 0)
80    }
81    #[doc = "Bit 19 - Specifies value of eFUSE control signal strobe_d"]
82    #[inline(always)]
83    pub fn strobe_d(&self) -> STROBE_D_R {
84        STROBE_D_R::new(((self.bits >> 19) & 1) != 0)
85    }
86    #[doc = "Bit 20 - Specifies value of eFUSE control signal strobe_e"]
87    #[inline(always)]
88    pub fn strobe_e(&self) -> STROBE_E_R {
89        STROBE_E_R::new(((self.bits >> 20) & 1) != 0)
90    }
91    #[doc = "Bit 21 - Specifies value of eFUSE control signal strobe_f"]
92    #[inline(always)]
93    pub fn strobe_f(&self) -> STROBE_F_R {
94        STROBE_F_R::new(((self.bits >> 21) & 1) != 0)
95    }
96    #[doc = "Bit 22 - Specifies value of eFUSE control signal strobe_g"]
97    #[inline(always)]
98    pub fn strobe_g(&self) -> STROBE_G_R {
99        STROBE_G_R::new(((self.bits >> 22) & 1) != 0)
100    }
101}
102impl W {
103    #[doc = "Bit 16 - Specifies value of eFUSE control signal strobe_f"]
104    #[inline(always)]
105    #[must_use]
106    pub fn strobe_a(&mut self) -> STROBE_A_W<16> {
107        STROBE_A_W::new(self)
108    }
109    #[doc = "Bit 17 - Specifies value of eFUSEcontrol signal strobe_b"]
110    #[inline(always)]
111    #[must_use]
112    pub fn strobe_b(&mut self) -> STROBE_B_W<17> {
113        STROBE_B_W::new(self)
114    }
115    #[doc = "Bit 18 - Specifies value of eFUSE control signal strobe_c"]
116    #[inline(always)]
117    #[must_use]
118    pub fn strobe_c(&mut self) -> STROBE_C_W<18> {
119        STROBE_C_W::new(self)
120    }
121    #[doc = "Bit 19 - Specifies value of eFUSE control signal strobe_d"]
122    #[inline(always)]
123    #[must_use]
124    pub fn strobe_d(&mut self) -> STROBE_D_W<19> {
125        STROBE_D_W::new(self)
126    }
127    #[doc = "Bit 20 - Specifies value of eFUSE control signal strobe_e"]
128    #[inline(always)]
129    #[must_use]
130    pub fn strobe_e(&mut self) -> STROBE_E_W<20> {
131        STROBE_E_W::new(self)
132    }
133    #[doc = "Bit 21 - Specifies value of eFUSE control signal strobe_f"]
134    #[inline(always)]
135    #[must_use]
136    pub fn strobe_f(&mut self) -> STROBE_F_W<21> {
137        STROBE_F_W::new(self)
138    }
139    #[doc = "Bit 22 - Specifies value of eFUSE control signal strobe_g"]
140    #[inline(always)]
141    #[must_use]
142    pub fn strobe_g(&mut self) -> STROBE_G_W<22> {
143        STROBE_G_W::new(self)
144    }
145    #[doc = "Writes raw bits to the register."]
146    #[inline(always)]
147    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
148        self.0.bits(bits);
149        self
150    }
151}
152#[doc = "Sequencer Default value\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_default](index.html) module"]
153pub struct SEQ_DEFAULT_SPEC;
154impl crate::RegisterSpec for SEQ_DEFAULT_SPEC {
155    type Ux = u32;
156}
157#[doc = "`read()` method returns [seq_default::R](R) reader structure"]
158impl crate::Readable for SEQ_DEFAULT_SPEC {
159    type Reader = R;
160}
161#[doc = "`write(|w| ..)` method takes [seq_default::W](W) writer structure"]
162impl crate::Writable for SEQ_DEFAULT_SPEC {
163    type Writer = W;
164    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
165    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
166}
167#[doc = "`reset()` method sets SEQ_DEFAULT to value 0x001d_0000"]
168impl crate::Resettable for SEQ_DEFAULT_SPEC {
169    const RESET_VALUE: Self::Ux = 0x001d_0000;
170}