stm32wb_pac/dmamux1/
rgcfr.rs1#[doc = "Reader of register RGCFR"]
2pub type R = crate::R<u32, super::RGCFR>;
3#[doc = "Reader of field `CSOF0`"]
4pub type CSOF0_R = crate::R<bool, bool>;
5#[doc = "Reader of field `CSOF1`"]
6pub type CSOF1_R = crate::R<bool, bool>;
7#[doc = "Reader of field `CSOF2`"]
8pub type CSOF2_R = crate::R<bool, bool>;
9#[doc = "Reader of field `CSOF3`"]
10pub type CSOF3_R = crate::R<bool, bool>;
11impl R {
12 #[doc = "Bit 0 - Generator Clear Overrun Flag 0"]
13 #[inline(always)]
14 pub fn csof0(&self) -> CSOF0_R {
15 CSOF0_R::new((self.bits & 0x01) != 0)
16 }
17 #[doc = "Bit 1 - Generator Clear Overrun Flag 1"]
18 #[inline(always)]
19 pub fn csof1(&self) -> CSOF1_R {
20 CSOF1_R::new(((self.bits >> 1) & 0x01) != 0)
21 }
22 #[doc = "Bit 2 - Generator Clear Overrun Flag 2"]
23 #[inline(always)]
24 pub fn csof2(&self) -> CSOF2_R {
25 CSOF2_R::new(((self.bits >> 2) & 0x01) != 0)
26 }
27 #[doc = "Bit 3 - Generator Clear Overrun Flag 3"]
28 #[inline(always)]
29 pub fn csof3(&self) -> CSOF3_R {
30 CSOF3_R::new(((self.bits >> 3) & 0x01) != 0)
31 }
32}