1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
///Register `RET11_REG` reader
pub type R = crate::R<RET11_REGrs>;
///Register `RET11_REG` writer
pub type W = crate::W<RET11_REGrs>;
///Field `REG` reader - General Purpose Retention Register
pub type RegR = crate::FieldReader<u32>;
///Field `REG` writer - General Purpose Retention Register
pub type RegW<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
impl R {
///Bits 0:31 - General Purpose Retention Register
#[inline(always)]
pub fn reg(&self) -> RegR {
RegR::new(self.bits)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("RET11_REG")
.field("reg", &self.reg())
.finish()
}
}
impl W {
///Bits 0:31 - General Purpose Retention Register
#[inline(always)]
pub fn reg(&mut self) -> RegW<'_, RET11_REGrs> {
RegW::new(self, 0)
}
}
///Retention Register
///
///You can [`read`](crate::Reg::read) this register and get [`ret11_reg::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ret11_reg::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
pub struct RET11_REGrs;
impl crate::RegisterSpec for RET11_REGrs {
type Ux = u32;
}
///`read()` method returns [`ret11_reg::R`](R) reader structure
impl crate::Readable for RET11_REGrs {}
///`write(|w| ..)` method takes [`ret11_reg::W`](W) writer structure
impl crate::Writable for RET11_REGrs {
type Safety = crate::Unsafe;
}
///`reset()` method sets RET11_REG to value 0
impl crate::Resettable for RET11_REGrs {}