stm32wb_pac/rcc/
cifr.rs

1#[doc = "Reader of register CIFR"]
2pub type R = crate::R<u32, super::CIFR>;
3#[doc = "Reader of field `LSI2RDYF`"]
4pub type LSI2RDYF_R = crate::R<bool, bool>;
5#[doc = "Reader of field `HSI48RDYF`"]
6pub type HSI48RDYF_R = crate::R<bool, bool>;
7#[doc = "Reader of field `LSECSSF`"]
8pub type LSECSSF_R = crate::R<bool, bool>;
9#[doc = "Reader of field `HSECSSF`"]
10pub type HSECSSF_R = crate::R<bool, bool>;
11#[doc = "Reader of field `PLLSAI1RDYF`"]
12pub type PLLSAI1RDYF_R = crate::R<bool, bool>;
13#[doc = "Reader of field `PLLRDYF`"]
14pub type PLLRDYF_R = crate::R<bool, bool>;
15#[doc = "Reader of field `HSERDYF`"]
16pub type HSERDYF_R = crate::R<bool, bool>;
17#[doc = "Reader of field `HSIRDYF`"]
18pub type HSIRDYF_R = crate::R<bool, bool>;
19#[doc = "Reader of field `MSIRDYF`"]
20pub type MSIRDYF_R = crate::R<bool, bool>;
21#[doc = "Reader of field `LSERDYF`"]
22pub type LSERDYF_R = crate::R<bool, bool>;
23#[doc = "Reader of field `LSI1RDYF`"]
24pub type LSI1RDYF_R = crate::R<bool, bool>;
25impl R {
26    #[doc = "Bit 11 - LSI2 ready interrupt flag"]
27    #[inline(always)]
28    pub fn lsi2rdyf(&self) -> LSI2RDYF_R {
29        LSI2RDYF_R::new(((self.bits >> 11) & 0x01) != 0)
30    }
31    #[doc = "Bit 10 - HSI48 ready interrupt flag"]
32    #[inline(always)]
33    pub fn hsi48rdyf(&self) -> HSI48RDYF_R {
34        HSI48RDYF_R::new(((self.bits >> 10) & 0x01) != 0)
35    }
36    #[doc = "Bit 9 - LSE Clock security system interrupt flag"]
37    #[inline(always)]
38    pub fn lsecssf(&self) -> LSECSSF_R {
39        LSECSSF_R::new(((self.bits >> 9) & 0x01) != 0)
40    }
41    #[doc = "Bit 8 - HSE Clock security system interrupt flag"]
42    #[inline(always)]
43    pub fn hsecssf(&self) -> HSECSSF_R {
44        HSECSSF_R::new(((self.bits >> 8) & 0x01) != 0)
45    }
46    #[doc = "Bit 6 - PLLSAI1 ready interrupt flag"]
47    #[inline(always)]
48    pub fn pllsai1rdyf(&self) -> PLLSAI1RDYF_R {
49        PLLSAI1RDYF_R::new(((self.bits >> 6) & 0x01) != 0)
50    }
51    #[doc = "Bit 5 - PLL ready interrupt flag"]
52    #[inline(always)]
53    pub fn pllrdyf(&self) -> PLLRDYF_R {
54        PLLRDYF_R::new(((self.bits >> 5) & 0x01) != 0)
55    }
56    #[doc = "Bit 4 - HSE ready interrupt flag"]
57    #[inline(always)]
58    pub fn hserdyf(&self) -> HSERDYF_R {
59        HSERDYF_R::new(((self.bits >> 4) & 0x01) != 0)
60    }
61    #[doc = "Bit 3 - HSI ready interrupt flag"]
62    #[inline(always)]
63    pub fn hsirdyf(&self) -> HSIRDYF_R {
64        HSIRDYF_R::new(((self.bits >> 3) & 0x01) != 0)
65    }
66    #[doc = "Bit 2 - MSI ready interrupt flag"]
67    #[inline(always)]
68    pub fn msirdyf(&self) -> MSIRDYF_R {
69        MSIRDYF_R::new(((self.bits >> 2) & 0x01) != 0)
70    }
71    #[doc = "Bit 1 - LSE ready interrupt flag"]
72    #[inline(always)]
73    pub fn lserdyf(&self) -> LSERDYF_R {
74        LSERDYF_R::new(((self.bits >> 1) & 0x01) != 0)
75    }
76    #[doc = "Bit 0 - LSI1 ready interrupt flag"]
77    #[inline(always)]
78    pub fn lsi1rdyf(&self) -> LSI1RDYF_R {
79        LSI1RDYF_R::new((self.bits & 0x01) != 0)
80    }
81}