stm32wb_pac/dmamux1/
rgsr.rs

1#[doc = "Reader of register RGSR"]
2pub type R = crate::R<u32, super::RGSR>;
3#[doc = "Reader of field `OF0`"]
4pub type OF0_R = crate::R<bool, bool>;
5#[doc = "Reader of field `OF1`"]
6pub type OF1_R = crate::R<bool, bool>;
7#[doc = "Reader of field `OF2`"]
8pub type OF2_R = crate::R<bool, bool>;
9#[doc = "Reader of field `OF3`"]
10pub type OF3_R = crate::R<bool, bool>;
11impl R {
12    #[doc = "Bit 0 - Generator Overrun Flag 0"]
13    #[inline(always)]
14    pub fn of0(&self) -> OF0_R {
15        OF0_R::new((self.bits & 0x01) != 0)
16    }
17    #[doc = "Bit 1 - Generator Overrun Flag 1"]
18    #[inline(always)]
19    pub fn of1(&self) -> OF1_R {
20        OF1_R::new(((self.bits >> 1) & 0x01) != 0)
21    }
22    #[doc = "Bit 2 - Generator Overrun Flag 2"]
23    #[inline(always)]
24    pub fn of2(&self) -> OF2_R {
25        OF2_R::new(((self.bits >> 2) & 0x01) != 0)
26    }
27    #[doc = "Bit 3 - Generator Overrun Flag 3"]
28    #[inline(always)]
29    pub fn of3(&self) -> OF3_R {
30        OF3_R::new(((self.bits >> 3) & 0x01) != 0)
31    }
32}