efm32pg1b_pac/crypto/ddata4.rs
1///Register `DDATA4` reader
2pub type R = crate::R<DDATA4rs>;
3///Register `DDATA4` writer
4pub type W = crate::W<DDATA4rs>;
5///Field `DDATA4` reader - Double Data 0 Access
6pub type Ddata4R = crate::FieldReader<u32>;
7///Field `DDATA4` writer - Double Data 0 Access
8pub type Ddata4W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
9impl R {
10 ///Bits 0:31 - Double Data 0 Access
11 #[inline(always)]
12 pub fn ddata4(&self) -> Ddata4R {
13 Ddata4R::new(self.bits)
14 }
15}
16impl core::fmt::Debug for crate::generic::Reg<DDATA4rs> {
17 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
18 write!(f, "(not readable)")
19 }
20}
21impl W {
22 ///Bits 0:31 - Double Data 0 Access
23 #[inline(always)]
24 pub fn ddata4(&mut self) -> Ddata4W<'_, DDATA4rs> {
25 Ddata4W::new(self, 0)
26 }
27}
28///DDATA4 Register Access
29///
30///You can [`read`](crate::Reg::read) this register and get [`ddata4::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ddata4::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
31///
32///<div class="warning">One or more dependent resources other than the current register are immediately affected by a read operation.</div>
33pub struct DDATA4rs;
34impl crate::RegisterSpec for DDATA4rs {
35 type Ux = u32;
36}
37///`read()` method returns [`ddata4::R`](R) reader structure
38impl crate::Readable for DDATA4rs {}
39///`write(|w| ..)` method takes [`ddata4::W`](W) writer structure
40impl crate::Writable for DDATA4rs {
41 type Safety = crate::Unsafe;
42}
43///`reset()` method sets DDATA4 to value 0
44impl crate::Resettable for DDATA4rs {}