stm32wb_pac/dmamux1/
csr.rs

1#[doc = "Reader of register CSR"]
2pub type R = crate::R<u32, super::CSR>;
3#[doc = "Reader of field `SOF0`"]
4pub type SOF0_R = crate::R<bool, bool>;
5#[doc = "Reader of field `SOF1`"]
6pub type SOF1_R = crate::R<bool, bool>;
7#[doc = "Reader of field `SOF2`"]
8pub type SOF2_R = crate::R<bool, bool>;
9#[doc = "Reader of field `SOF3`"]
10pub type SOF3_R = crate::R<bool, bool>;
11#[doc = "Reader of field `SOF4`"]
12pub type SOF4_R = crate::R<bool, bool>;
13#[doc = "Reader of field `SOF5`"]
14pub type SOF5_R = crate::R<bool, bool>;
15#[doc = "Reader of field `SOF6`"]
16pub type SOF6_R = crate::R<bool, bool>;
17#[doc = "Reader of field `SOF7`"]
18pub type SOF7_R = crate::R<bool, bool>;
19#[doc = "Reader of field `SOF8`"]
20pub type SOF8_R = crate::R<bool, bool>;
21#[doc = "Reader of field `SOF9`"]
22pub type SOF9_R = crate::R<bool, bool>;
23#[doc = "Reader of field `SOF10`"]
24pub type SOF10_R = crate::R<bool, bool>;
25#[doc = "Reader of field `SOF11`"]
26pub type SOF11_R = crate::R<bool, bool>;
27#[doc = "Reader of field `SOF12`"]
28pub type SOF12_R = crate::R<bool, bool>;
29#[doc = "Reader of field `SOF13`"]
30pub type SOF13_R = crate::R<bool, bool>;
31impl R {
32    #[doc = "Bit 0 - Synchronization Overrun Flag 0"]
33    #[inline(always)]
34    pub fn sof0(&self) -> SOF0_R {
35        SOF0_R::new((self.bits & 0x01) != 0)
36    }
37    #[doc = "Bit 1 - Synchronization Overrun Flag 1"]
38    #[inline(always)]
39    pub fn sof1(&self) -> SOF1_R {
40        SOF1_R::new(((self.bits >> 1) & 0x01) != 0)
41    }
42    #[doc = "Bit 2 - Synchronization Overrun Flag 2"]
43    #[inline(always)]
44    pub fn sof2(&self) -> SOF2_R {
45        SOF2_R::new(((self.bits >> 2) & 0x01) != 0)
46    }
47    #[doc = "Bit 3 - Synchronization Overrun Flag 3"]
48    #[inline(always)]
49    pub fn sof3(&self) -> SOF3_R {
50        SOF3_R::new(((self.bits >> 3) & 0x01) != 0)
51    }
52    #[doc = "Bit 4 - Synchronization Overrun Flag 4"]
53    #[inline(always)]
54    pub fn sof4(&self) -> SOF4_R {
55        SOF4_R::new(((self.bits >> 4) & 0x01) != 0)
56    }
57    #[doc = "Bit 5 - Synchronization Overrun Flag 5"]
58    #[inline(always)]
59    pub fn sof5(&self) -> SOF5_R {
60        SOF5_R::new(((self.bits >> 5) & 0x01) != 0)
61    }
62    #[doc = "Bit 6 - Synchronization Overrun Flag 6"]
63    #[inline(always)]
64    pub fn sof6(&self) -> SOF6_R {
65        SOF6_R::new(((self.bits >> 6) & 0x01) != 0)
66    }
67    #[doc = "Bit 7 - Synchronization Overrun Flag 7"]
68    #[inline(always)]
69    pub fn sof7(&self) -> SOF7_R {
70        SOF7_R::new(((self.bits >> 7) & 0x01) != 0)
71    }
72    #[doc = "Bit 8 - Synchronization Overrun Flag 8"]
73    #[inline(always)]
74    pub fn sof8(&self) -> SOF8_R {
75        SOF8_R::new(((self.bits >> 8) & 0x01) != 0)
76    }
77    #[doc = "Bit 9 - Synchronization Overrun Flag 9"]
78    #[inline(always)]
79    pub fn sof9(&self) -> SOF9_R {
80        SOF9_R::new(((self.bits >> 9) & 0x01) != 0)
81    }
82    #[doc = "Bit 10 - Synchronization Overrun Flag 10"]
83    #[inline(always)]
84    pub fn sof10(&self) -> SOF10_R {
85        SOF10_R::new(((self.bits >> 10) & 0x01) != 0)
86    }
87    #[doc = "Bit 11 - Synchronization Overrun Flag 11"]
88    #[inline(always)]
89    pub fn sof11(&self) -> SOF11_R {
90        SOF11_R::new(((self.bits >> 11) & 0x01) != 0)
91    }
92    #[doc = "Bit 12 - Synchronization Overrun Flag 12"]
93    #[inline(always)]
94    pub fn sof12(&self) -> SOF12_R {
95        SOF12_R::new(((self.bits >> 12) & 0x01) != 0)
96    }
97    #[doc = "Bit 13 - Synchronization Overrun Flag 13"]
98    #[inline(always)]
99    pub fn sof13(&self) -> SOF13_R {
100        SOF13_R::new(((self.bits >> 13) & 0x01) != 0)
101    }
102}