pub type R = crate::R<CIFRrs>;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum LSIRDYFR {
NotInterrupted = 0,
Interrupted = 1,
}
impl From<LSIRDYFR> for bool {
#[inline(always)]
fn from(variant: LSIRDYFR) -> Self {
variant as u8 != 0
}
}
pub type LSIRDYF_R = crate::BitReader<LSIRDYFR>;
impl LSIRDYF_R {
#[inline(always)]
pub const fn variant(&self) -> LSIRDYFR {
match self.bits {
false => LSIRDYFR::NotInterrupted,
true => LSIRDYFR::Interrupted,
}
}
#[inline(always)]
pub fn is_not_interrupted(&self) -> bool {
*self == LSIRDYFR::NotInterrupted
}
#[inline(always)]
pub fn is_interrupted(&self) -> bool {
*self == LSIRDYFR::Interrupted
}
}
pub use LSIRDYF_R as LSERDYF_R;
pub use LSIRDYF_R as HSIRDYF_R;
pub use LSIRDYF_R as HSERDYF_R;
pub use LSIRDYF_R as CSIRDYF_R;
pub use LSIRDYF_R as HSI48RDYF_R;
pub use LSIRDYF_R as PLL1RDYF_R;
pub use LSIRDYF_R as PLL2RDYF_R;
pub use LSIRDYF_R as PLL3RDYF_R;
pub type LSECSSF_R = crate::BitReader;
pub type HSECSSF_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn lsirdyf(&self) -> LSIRDYF_R {
LSIRDYF_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn lserdyf(&self) -> LSERDYF_R {
LSERDYF_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn hsirdyf(&self) -> HSIRDYF_R {
HSIRDYF_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn hserdyf(&self) -> HSERDYF_R {
HSERDYF_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn csirdyf(&self) -> CSIRDYF_R {
CSIRDYF_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn hsi48rdyf(&self) -> HSI48RDYF_R {
HSI48RDYF_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn pll1rdyf(&self) -> PLL1RDYF_R {
PLL1RDYF_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn pll2rdyf(&self) -> PLL2RDYF_R {
PLL2RDYF_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn pll3rdyf(&self) -> PLL3RDYF_R {
PLL3RDYF_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn lsecssf(&self) -> LSECSSF_R {
LSECSSF_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn hsecssf(&self) -> HSECSSF_R {
HSECSSF_R::new(((self.bits >> 10) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CIFR")
.field("lsirdyf", &self.lsirdyf())
.field("lserdyf", &self.lserdyf())
.field("hsirdyf", &self.hsirdyf())
.field("hserdyf", &self.hserdyf())
.field("csirdyf", &self.csirdyf())
.field("hsi48rdyf", &self.hsi48rdyf())
.field("pll1rdyf", &self.pll1rdyf())
.field("pll2rdyf", &self.pll2rdyf())
.field("pll3rdyf", &self.pll3rdyf())
.field("lsecssf", &self.lsecssf())
.field("hsecssf", &self.hsecssf())
.finish()
}
}
pub struct CIFRrs;
impl crate::RegisterSpec for CIFRrs {
type Ux = u32;
}
impl crate::Readable for CIFRrs {}
impl crate::Resettable for CIFRrs {}