1#[doc = "Register `IBIEXT2` reader"]
2pub type R = crate::R<Ibiext2Spec>;
3#[doc = "Register `IBIEXT2` writer"]
4pub type W = crate::W<Ibiext2Spec>;
5#[doc = "Field `EXT4` reader - Extra Byte 4"]
6pub type Ext4R = crate::FieldReader;
7#[doc = "Field `EXT4` writer - Extra Byte 4"]
8pub type Ext4W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
9#[doc = "Field `EXT5` reader - Extra Byte 5"]
10pub type Ext5R = crate::FieldReader;
11#[doc = "Field `EXT5` writer - Extra Byte 5"]
12pub type Ext5W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
13#[doc = "Field `EXT6` reader - Extra Byte 6"]
14pub type Ext6R = crate::FieldReader;
15#[doc = "Field `EXT6` writer - Extra Byte 6"]
16pub type Ext6W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
17#[doc = "Field `EXT7` reader - Extra Byte 7"]
18pub type Ext7R = crate::FieldReader;
19#[doc = "Field `EXT7` writer - Extra Byte 7"]
20pub type Ext7W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
21impl R {
22 #[doc = "Bits 0:7 - Extra Byte 4"]
23 #[inline(always)]
24 pub fn ext4(&self) -> Ext4R {
25 Ext4R::new((self.bits & 0xff) as u8)
26 }
27 #[doc = "Bits 8:15 - Extra Byte 5"]
28 #[inline(always)]
29 pub fn ext5(&self) -> Ext5R {
30 Ext5R::new(((self.bits >> 8) & 0xff) as u8)
31 }
32 #[doc = "Bits 16:23 - Extra Byte 6"]
33 #[inline(always)]
34 pub fn ext6(&self) -> Ext6R {
35 Ext6R::new(((self.bits >> 16) & 0xff) as u8)
36 }
37 #[doc = "Bits 24:31 - Extra Byte 7"]
38 #[inline(always)]
39 pub fn ext7(&self) -> Ext7R {
40 Ext7R::new(((self.bits >> 24) & 0xff) as u8)
41 }
42}
43#[cfg(feature = "debug")]
44impl core::fmt::Debug for R {
45 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
46 f.debug_struct("IBIEXT2")
47 .field("ext4", &self.ext4())
48 .field("ext5", &self.ext5())
49 .field("ext6", &self.ext6())
50 .field("ext7", &self.ext7())
51 .finish()
52 }
53}
54impl W {
55 #[doc = "Bits 0:7 - Extra Byte 4"]
56 #[inline(always)]
57 pub fn ext4(&mut self) -> Ext4W<'_, Ibiext2Spec> {
58 Ext4W::new(self, 0)
59 }
60 #[doc = "Bits 8:15 - Extra Byte 5"]
61 #[inline(always)]
62 pub fn ext5(&mut self) -> Ext5W<'_, Ibiext2Spec> {
63 Ext5W::new(self, 8)
64 }
65 #[doc = "Bits 16:23 - Extra Byte 6"]
66 #[inline(always)]
67 pub fn ext6(&mut self) -> Ext6W<'_, Ibiext2Spec> {
68 Ext6W::new(self, 16)
69 }
70 #[doc = "Bits 24:31 - Extra Byte 7"]
71 #[inline(always)]
72 pub fn ext7(&mut self) -> Ext7W<'_, Ibiext2Spec> {
73 Ext7W::new(self, 24)
74 }
75}
76#[doc = "Extended IBI Data 2\n\nYou can [`read`](crate::Reg::read) this register and get [`ibiext2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ibiext2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
77pub struct Ibiext2Spec;
78impl crate::RegisterSpec for Ibiext2Spec {
79 type Ux = u32;
80}
81#[doc = "`read()` method returns [`ibiext2::R`](R) reader structure"]
82impl crate::Readable for Ibiext2Spec {}
83#[doc = "`write(|w| ..)` method takes [`ibiext2::W`](W) writer structure"]
84impl crate::Writable for Ibiext2Spec {
85 type Safety = crate::Unsafe;
86}
87#[doc = "`reset()` method sets IBIEXT2 to value 0"]
88impl crate::Resettable for Ibiext2Spec {}