stm32f1_staging/stm32f103/fsmc/
pio4.rs1pub type R = crate::R<PIO4rs>;
3pub type W = crate::W<PIO4rs>;
5pub type IOSETX_R = crate::FieldReader;
7pub type IOSETX_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
9pub type IOWAITX_R = crate::FieldReader;
11pub type IOWAITX_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
13pub type IOHOLDX_R = crate::FieldReader;
15pub type IOHOLDX_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
17pub type IOHIZX_R = crate::FieldReader;
19pub type IOHIZX_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
21impl R {
22 #[inline(always)]
24 pub fn iosetx(&self) -> IOSETX_R {
25 IOSETX_R::new((self.bits & 0xff) as u8)
26 }
27 #[inline(always)]
29 pub fn iowaitx(&self) -> IOWAITX_R {
30 IOWAITX_R::new(((self.bits >> 8) & 0xff) as u8)
31 }
32 #[inline(always)]
34 pub fn ioholdx(&self) -> IOHOLDX_R {
35 IOHOLDX_R::new(((self.bits >> 16) & 0xff) as u8)
36 }
37 #[inline(always)]
39 pub fn iohizx(&self) -> IOHIZX_R {
40 IOHIZX_R::new(((self.bits >> 24) & 0xff) as u8)
41 }
42}
43impl core::fmt::Debug for R {
44 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
45 f.debug_struct("PIO4")
46 .field("iohizx", &self.iohizx())
47 .field("ioholdx", &self.ioholdx())
48 .field("iowaitx", &self.iowaitx())
49 .field("iosetx", &self.iosetx())
50 .finish()
51 }
52}
53impl W {
54 #[inline(always)]
56 pub fn iosetx(&mut self) -> IOSETX_W<PIO4rs> {
57 IOSETX_W::new(self, 0)
58 }
59 #[inline(always)]
61 pub fn iowaitx(&mut self) -> IOWAITX_W<PIO4rs> {
62 IOWAITX_W::new(self, 8)
63 }
64 #[inline(always)]
66 pub fn ioholdx(&mut self) -> IOHOLDX_W<PIO4rs> {
67 IOHOLDX_W::new(self, 16)
68 }
69 #[inline(always)]
71 pub fn iohizx(&mut self) -> IOHIZX_W<PIO4rs> {
72 IOHIZX_W::new(self, 24)
73 }
74}
75pub struct PIO4rs;
81impl crate::RegisterSpec for PIO4rs {
82 type Ux = u32;
83}
84impl crate::Readable for PIO4rs {}
86impl crate::Writable for PIO4rs {
88 type Safety = crate::Unsafe;
89}
90impl crate::Resettable for PIO4rs {
92 const RESET_VALUE: u32 = 0xfcfc_fcfc;
93}