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 HSI16RDYF_R;
pub use LSIRDYF_R as HSERDYF_R;
pub use LSIRDYF_R as PLLRDYF_R;
pub use LSIRDYF_R as MSIRDYF_R;
pub use LSIRDYF_R as HSI48RDYF_R;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CSSLSEF {
NoFailure = 0,
Failure = 1,
}
impl From<CSSLSEF> for bool {
#[inline(always)]
fn from(variant: CSSLSEF) -> Self {
variant as u8 != 0
}
}
pub type CSSLSEF_R = crate::BitReader<CSSLSEF>;
impl CSSLSEF_R {
#[inline(always)]
pub const fn variant(&self) -> CSSLSEF {
match self.bits {
false => CSSLSEF::NoFailure,
true => CSSLSEF::Failure,
}
}
#[inline(always)]
pub fn is_no_failure(&self) -> bool {
*self == CSSLSEF::NoFailure
}
#[inline(always)]
pub fn is_failure(&self) -> bool {
*self == CSSLSEF::Failure
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CSSHSEF {
NoClock = 0,
Clock = 1,
}
impl From<CSSHSEF> for bool {
#[inline(always)]
fn from(variant: CSSHSEF) -> Self {
variant as u8 != 0
}
}
pub type CSSHSEF_R = crate::BitReader<CSSHSEF>;
impl CSSHSEF_R {
#[inline(always)]
pub const fn variant(&self) -> CSSHSEF {
match self.bits {
false => CSSHSEF::NoClock,
true => CSSHSEF::Clock,
}
}
#[inline(always)]
pub fn is_no_clock(&self) -> bool {
*self == CSSHSEF::NoClock
}
#[inline(always)]
pub fn is_clock(&self) -> bool {
*self == CSSHSEF::Clock
}
}
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 hsi16rdyf(&self) -> HSI16RDYF_R {
HSI16RDYF_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 pllrdyf(&self) -> PLLRDYF_R {
PLLRDYF_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn msirdyf(&self) -> MSIRDYF_R {
MSIRDYF_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn hsi48rdyf(&self) -> HSI48RDYF_R {
HSI48RDYF_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn csslsef(&self) -> CSSLSEF_R {
CSSLSEF_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn csshsef(&self) -> CSSHSEF_R {
CSSHSEF_R::new(((self.bits >> 8) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CIFR")
.field("csshsef", &self.csshsef())
.field("csslsef", &self.csslsef())
.field("lsirdyf", &self.lsirdyf())
.field("hsi48rdyf", &self.hsi48rdyf())
.field("msirdyf", &self.msirdyf())
.field("pllrdyf", &self.pllrdyf())
.field("hserdyf", &self.hserdyf())
.field("hsi16rdyf", &self.hsi16rdyf())
.field("lserdyf", &self.lserdyf())
.finish()
}
}
pub struct CIFRrs;
impl crate::RegisterSpec for CIFRrs {
type Ux = u32;
}
impl crate::Readable for CIFRrs {}
impl crate::Resettable for CIFRrs {}