1#[doc = "Register `IRAW` reader"]
2pub type R = crate::R<IrawSpec>;
3#[doc = "Register `IRAW` writer"]
4pub type W = crate::W<IrawSpec>;
5#[doc = "Field `ADIRAWS` reader - ADIRAWS"]
6pub type AdirawsR = crate::BitReader;
7#[doc = "Field `ADIRAWS` writer - ADIRAWS"]
8pub type AdirawsW<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `ADIRAWG` reader - ADIRAWG"]
10pub type AdirawgR = crate::BitReader;
11#[doc = "Field `ADIRAWG` writer - ADIRAWG"]
12pub type AdirawgW<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `ADIRAWC` reader - ADIRAWC"]
14pub type AdirawcR = crate::BitReader;
15#[doc = "Field `ADIRAWC` writer - ADIRAWC"]
16pub type AdirawcW<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `ADIRAWL` reader - ADIRAWL"]
18pub type AdirawlR = crate::BitReader;
19#[doc = "Field `ADIRAWL` writer - ADIRAWL"]
20pub type AdirawlW<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `ADIRAWU` reader - ADIRAWU"]
22pub type AdirawuR = crate::BitReader;
23#[doc = "Field `ADIRAWU` writer - ADIRAWU"]
24pub type AdirawuW<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `ADIRAWO` reader - ADIRAWO"]
26pub type AdirawoR = crate::BitReader;
27#[doc = "Field `ADIRAWO` writer - ADIRAWO"]
28pub type AdirawoW<'a, REG> = crate::BitWriter<'a, REG>;
29impl R {
30 #[doc = "Bit 0 - ADIRAWS"]
31 #[inline(always)]
32 pub fn adiraws(&self) -> AdirawsR {
33 AdirawsR::new((self.bits & 1) != 0)
34 }
35 #[doc = "Bit 1 - ADIRAWG"]
36 #[inline(always)]
37 pub fn adirawg(&self) -> AdirawgR {
38 AdirawgR::new(((self.bits >> 1) & 1) != 0)
39 }
40 #[doc = "Bit 2 - ADIRAWC"]
41 #[inline(always)]
42 pub fn adirawc(&self) -> AdirawcR {
43 AdirawcR::new(((self.bits >> 2) & 1) != 0)
44 }
45 #[doc = "Bit 16 - ADIRAWL"]
46 #[inline(always)]
47 pub fn adirawl(&self) -> AdirawlR {
48 AdirawlR::new(((self.bits >> 16) & 1) != 0)
49 }
50 #[doc = "Bit 17 - ADIRAWU"]
51 #[inline(always)]
52 pub fn adirawu(&self) -> AdirawuR {
53 AdirawuR::new(((self.bits >> 17) & 1) != 0)
54 }
55 #[doc = "Bit 24 - ADIRAWO"]
56 #[inline(always)]
57 pub fn adirawo(&self) -> AdirawoR {
58 AdirawoR::new(((self.bits >> 24) & 1) != 0)
59 }
60}
61impl W {
62 #[doc = "Bit 0 - ADIRAWS"]
63 #[inline(always)]
64 #[must_use]
65 pub fn adiraws(&mut self) -> AdirawsW<IrawSpec> {
66 AdirawsW::new(self, 0)
67 }
68 #[doc = "Bit 1 - ADIRAWG"]
69 #[inline(always)]
70 #[must_use]
71 pub fn adirawg(&mut self) -> AdirawgW<IrawSpec> {
72 AdirawgW::new(self, 1)
73 }
74 #[doc = "Bit 2 - ADIRAWC"]
75 #[inline(always)]
76 #[must_use]
77 pub fn adirawc(&mut self) -> AdirawcW<IrawSpec> {
78 AdirawcW::new(self, 2)
79 }
80 #[doc = "Bit 16 - ADIRAWL"]
81 #[inline(always)]
82 #[must_use]
83 pub fn adirawl(&mut self) -> AdirawlW<IrawSpec> {
84 AdirawlW::new(self, 16)
85 }
86 #[doc = "Bit 17 - ADIRAWU"]
87 #[inline(always)]
88 #[must_use]
89 pub fn adirawu(&mut self) -> AdirawuW<IrawSpec> {
90 AdirawuW::new(self, 17)
91 }
92 #[doc = "Bit 24 - ADIRAWO"]
93 #[inline(always)]
94 #[must_use]
95 pub fn adirawo(&mut self) -> AdirawoW<IrawSpec> {
96 AdirawoW::new(self, 24)
97 }
98}
99#[doc = "IRAW\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`iraw::R`](R). You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iraw::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
100pub struct IrawSpec;
101impl crate::RegisterSpec for IrawSpec {
102 type Ux = u32;
103}
104#[doc = "`read()` method returns [`iraw::R`](R) reader structure"]
105impl crate::Readable for IrawSpec {}
106#[doc = "`write(|w| ..)` method takes [`iraw::W`](W) writer structure"]
107impl crate::Writable for IrawSpec {
108 type Safety = crate::Unsafe;
109 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
110 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
111}
112#[doc = "`reset()` method sets IRAW to value 0"]
113impl crate::Resettable for IrawSpec {
114 const RESET_VALUE: u32 = 0;
115}