efm32tg11b_pac/efm32tg11b540/emu/
em23pernoretaincmd.rs

1#[doc = "Register `EM23PERNORETAINCMD` writer"]
2pub struct W(crate::W<EM23PERNORETAINCMD_SPEC>);
3impl core::ops::Deref for W {
4    type Target = crate::W<EM23PERNORETAINCMD_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl core::ops::DerefMut for W {
11    #[inline(always)]
12    fn deref_mut(&mut self) -> &mut Self::Target {
13        &mut self.0
14    }
15}
16impl From<crate::W<EM23PERNORETAINCMD_SPEC>> for W {
17    #[inline(always)]
18    fn from(writer: crate::W<EM23PERNORETAINCMD_SPEC>) -> Self {
19        W(writer)
20    }
21}
22#[doc = "Field `ACMP0UNLOCK` writer - Clears Status Bit of ACMP0 and Unlocks Access to It"]
23pub type ACMP0UNLOCK_W<'a, const O: u8> =
24    crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
25#[doc = "Field `ACMP1UNLOCK` writer - Clears Status Bit of ACMP1 and Unlocks Access to It"]
26pub type ACMP1UNLOCK_W<'a, const O: u8> =
27    crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
28#[doc = "Field `PCNT0UNLOCK` writer - Clears Status Bit of PCNT0 and Unlocks Access to It"]
29pub type PCNT0UNLOCK_W<'a, const O: u8> =
30    crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
31#[doc = "Field `I2C0UNLOCK` writer - Clears Status Bit of I2C0 and Unlocks Access to It"]
32pub type I2C0UNLOCK_W<'a, const O: u8> =
33    crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
34#[doc = "Field `I2C1UNLOCK` writer - Clears Status Bit of I2C1 and Unlocks Access to It"]
35pub type I2C1UNLOCK_W<'a, const O: u8> =
36    crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
37#[doc = "Field `DAC0UNLOCK` writer - Clears Status Bit of DAC0 and Unlocks Access to It"]
38pub type DAC0UNLOCK_W<'a, const O: u8> =
39    crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
40#[doc = "Field `ADC0UNLOCK` writer - Clears Status Bit of ADC0 and Unlocks Access to It"]
41pub type ADC0UNLOCK_W<'a, const O: u8> =
42    crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
43#[doc = "Field `LETIMER0UNLOCK` writer - Clears Status Bit of LETIMER0 and Unlocks Access to It"]
44pub type LETIMER0UNLOCK_W<'a, const O: u8> =
45    crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
46#[doc = "Field `WDOG0UNLOCK` writer - Clears Status Bit of WDOG0 and Unlocks Access to It"]
47pub type WDOG0UNLOCK_W<'a, const O: u8> =
48    crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
49#[doc = "Field `LESENSE0UNLOCK` writer - Clears Status Bit of LESENSE0 and Unlocks Access to It"]
50pub type LESENSE0UNLOCK_W<'a, const O: u8> =
51    crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
52#[doc = "Field `CSENUNLOCK` writer - Clears Status Bit of CSEN and Unlocks Access to It"]
53pub type CSENUNLOCK_W<'a, const O: u8> =
54    crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
55#[doc = "Field `LEUART0UNLOCK` writer - Clears Status Bit of LEUART0 and Unlocks Access to It"]
56pub type LEUART0UNLOCK_W<'a, const O: u8> =
57    crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
58#[doc = "Field `LCDUNLOCK` writer - Clears Status Bit of LCD and Unlocks Access to It"]
59pub type LCDUNLOCK_W<'a, const O: u8> = crate::BitWriter<'a, u32, EM23PERNORETAINCMD_SPEC, bool, O>;
60impl W {
61    #[doc = "Bit 0 - Clears Status Bit of ACMP0 and Unlocks Access to It"]
62    #[inline(always)]
63    #[must_use]
64    pub fn acmp0unlock(&mut self) -> ACMP0UNLOCK_W<0> {
65        ACMP0UNLOCK_W::new(self)
66    }
67    #[doc = "Bit 1 - Clears Status Bit of ACMP1 and Unlocks Access to It"]
68    #[inline(always)]
69    #[must_use]
70    pub fn acmp1unlock(&mut self) -> ACMP1UNLOCK_W<1> {
71        ACMP1UNLOCK_W::new(self)
72    }
73    #[doc = "Bit 2 - Clears Status Bit of PCNT0 and Unlocks Access to It"]
74    #[inline(always)]
75    #[must_use]
76    pub fn pcnt0unlock(&mut self) -> PCNT0UNLOCK_W<2> {
77        PCNT0UNLOCK_W::new(self)
78    }
79    #[doc = "Bit 5 - Clears Status Bit of I2C0 and Unlocks Access to It"]
80    #[inline(always)]
81    #[must_use]
82    pub fn i2c0unlock(&mut self) -> I2C0UNLOCK_W<5> {
83        I2C0UNLOCK_W::new(self)
84    }
85    #[doc = "Bit 6 - Clears Status Bit of I2C1 and Unlocks Access to It"]
86    #[inline(always)]
87    #[must_use]
88    pub fn i2c1unlock(&mut self) -> I2C1UNLOCK_W<6> {
89        I2C1UNLOCK_W::new(self)
90    }
91    #[doc = "Bit 7 - Clears Status Bit of DAC0 and Unlocks Access to It"]
92    #[inline(always)]
93    #[must_use]
94    pub fn dac0unlock(&mut self) -> DAC0UNLOCK_W<7> {
95        DAC0UNLOCK_W::new(self)
96    }
97    #[doc = "Bit 9 - Clears Status Bit of ADC0 and Unlocks Access to It"]
98    #[inline(always)]
99    #[must_use]
100    pub fn adc0unlock(&mut self) -> ADC0UNLOCK_W<9> {
101        ADC0UNLOCK_W::new(self)
102    }
103    #[doc = "Bit 10 - Clears Status Bit of LETIMER0 and Unlocks Access to It"]
104    #[inline(always)]
105    #[must_use]
106    pub fn letimer0unlock(&mut self) -> LETIMER0UNLOCK_W<10> {
107        LETIMER0UNLOCK_W::new(self)
108    }
109    #[doc = "Bit 11 - Clears Status Bit of WDOG0 and Unlocks Access to It"]
110    #[inline(always)]
111    #[must_use]
112    pub fn wdog0unlock(&mut self) -> WDOG0UNLOCK_W<11> {
113        WDOG0UNLOCK_W::new(self)
114    }
115    #[doc = "Bit 13 - Clears Status Bit of LESENSE0 and Unlocks Access to It"]
116    #[inline(always)]
117    #[must_use]
118    pub fn lesense0unlock(&mut self) -> LESENSE0UNLOCK_W<13> {
119        LESENSE0UNLOCK_W::new(self)
120    }
121    #[doc = "Bit 14 - Clears Status Bit of CSEN and Unlocks Access to It"]
122    #[inline(always)]
123    #[must_use]
124    pub fn csenunlock(&mut self) -> CSENUNLOCK_W<14> {
125        CSENUNLOCK_W::new(self)
126    }
127    #[doc = "Bit 15 - Clears Status Bit of LEUART0 and Unlocks Access to It"]
128    #[inline(always)]
129    #[must_use]
130    pub fn leuart0unlock(&mut self) -> LEUART0UNLOCK_W<15> {
131        LEUART0UNLOCK_W::new(self)
132    }
133    #[doc = "Bit 17 - Clears Status Bit of LCD and Unlocks Access to It"]
134    #[inline(always)]
135    #[must_use]
136    pub fn lcdunlock(&mut self) -> LCDUNLOCK_W<17> {
137        LCDUNLOCK_W::new(self)
138    }
139    #[doc = "Writes raw bits to the register."]
140    #[inline(always)]
141    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
142        self.0.bits(bits);
143        self
144    }
145}
146#[doc = "Clears Corresponding Bits in EM23PERNORETAINSTATUS Unlocking Access to Peripheral\n\nThis register you can [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [em23pernoretaincmd](index.html) module"]
147pub struct EM23PERNORETAINCMD_SPEC;
148impl crate::RegisterSpec for EM23PERNORETAINCMD_SPEC {
149    type Ux = u32;
150}
151#[doc = "`write(|w| ..)` method takes [em23pernoretaincmd::W](W) writer structure"]
152impl crate::Writable for EM23PERNORETAINCMD_SPEC {
153    type Writer = W;
154    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
155    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
156}
157#[doc = "`reset()` method sets EM23PERNORETAINCMD to value 0"]
158impl crate::Resettable for EM23PERNORETAINCMD_SPEC {
159    const RESET_VALUE: Self::Ux = 0;
160}