pub type R = crate::R<CIRrs>;
pub type W = crate::W<CIRrs>;
#[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 PLLRDYF_R;
pub use LSIRDYF_R as PLLI2SRDYF_R;
pub use LSIRDYF_R as PLLSAIRDYF_R;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CSSFR {
NotInterrupted = 0,
Interrupted = 1,
}
impl From<CSSFR> for bool {
#[inline(always)]
fn from(variant: CSSFR) -> Self {
variant as u8 != 0
}
}
pub type CSSF_R = crate::BitReader<CSSFR>;
impl CSSF_R {
#[inline(always)]
pub const fn variant(&self) -> CSSFR {
match self.bits {
false => CSSFR::NotInterrupted,
true => CSSFR::Interrupted,
}
}
#[inline(always)]
pub fn is_not_interrupted(&self) -> bool {
*self == CSSFR::NotInterrupted
}
#[inline(always)]
pub fn is_interrupted(&self) -> bool {
*self == CSSFR::Interrupted
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum LSIRDYIE {
Disabled = 0,
Enabled = 1,
}
impl From<LSIRDYIE> for bool {
#[inline(always)]
fn from(variant: LSIRDYIE) -> Self {
variant as u8 != 0
}
}
pub type LSIRDYIE_R = crate::BitReader<LSIRDYIE>;
impl LSIRDYIE_R {
#[inline(always)]
pub const fn variant(&self) -> LSIRDYIE {
match self.bits {
false => LSIRDYIE::Disabled,
true => LSIRDYIE::Enabled,
}
}
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == LSIRDYIE::Disabled
}
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == LSIRDYIE::Enabled
}
}
pub type LSIRDYIE_W<'a, REG> = crate::BitWriter<'a, REG, LSIRDYIE>;
impl<'a, REG> LSIRDYIE_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn disabled(self) -> &'a mut crate::W<REG> {
self.variant(LSIRDYIE::Disabled)
}
#[inline(always)]
pub fn enabled(self) -> &'a mut crate::W<REG> {
self.variant(LSIRDYIE::Enabled)
}
}
pub use LSIRDYIE_R as LSERDYIE_R;
pub use LSIRDYIE_R as HSIRDYIE_R;
pub use LSIRDYIE_R as HSERDYIE_R;
pub use LSIRDYIE_R as PLLRDYIE_R;
pub use LSIRDYIE_R as PLLI2SRDYIE_R;
pub use LSIRDYIE_R as PLLSAIRDYIE_R;
pub use LSIRDYIE_W as LSERDYIE_W;
pub use LSIRDYIE_W as HSIRDYIE_W;
pub use LSIRDYIE_W as HSERDYIE_W;
pub use LSIRDYIE_W as PLLRDYIE_W;
pub use LSIRDYIE_W as PLLI2SRDYIE_W;
pub use LSIRDYIE_W as PLLSAIRDYIE_W;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum LSIRDYCW {
Clear = 1,
}
impl From<LSIRDYCW> for bool {
#[inline(always)]
fn from(variant: LSIRDYCW) -> Self {
variant as u8 != 0
}
}
pub type LSIRDYC_W<'a, REG> = crate::BitWriter<'a, REG, LSIRDYCW>;
impl<'a, REG> LSIRDYC_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(LSIRDYCW::Clear)
}
}
pub use LSIRDYC_W as LSERDYC_W;
pub use LSIRDYC_W as HSIRDYC_W;
pub use LSIRDYC_W as HSERDYC_W;
pub use LSIRDYC_W as PLLRDYC_W;
pub use LSIRDYC_W as PLLI2SRDYC_W;
pub use LSIRDYC_W as PLLSAIRDYC_W;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CSSCW {
Clear = 1,
}
impl From<CSSCW> for bool {
#[inline(always)]
fn from(variant: CSSCW) -> Self {
variant as u8 != 0
}
}
pub type CSSC_W<'a, REG> = crate::BitWriter<'a, REG, CSSCW>;
impl<'a, REG> CSSC_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(CSSCW::Clear)
}
}
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 pllrdyf(&self) -> PLLRDYF_R {
PLLRDYF_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn plli2srdyf(&self) -> PLLI2SRDYF_R {
PLLI2SRDYF_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn pllsairdyf(&self) -> PLLSAIRDYF_R {
PLLSAIRDYF_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn cssf(&self) -> CSSF_R {
CSSF_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn lsirdyie(&self) -> LSIRDYIE_R {
LSIRDYIE_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn lserdyie(&self) -> LSERDYIE_R {
LSERDYIE_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn hsirdyie(&self) -> HSIRDYIE_R {
HSIRDYIE_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn hserdyie(&self) -> HSERDYIE_R {
HSERDYIE_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn pllrdyie(&self) -> PLLRDYIE_R {
PLLRDYIE_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn plli2srdyie(&self) -> PLLI2SRDYIE_R {
PLLI2SRDYIE_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn pllsairdyie(&self) -> PLLSAIRDYIE_R {
PLLSAIRDYIE_R::new(((self.bits >> 14) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CIR")
.field("lsirdyie", &self.lsirdyie())
.field("pllsairdyie", &self.pllsairdyie())
.field("plli2srdyie", &self.plli2srdyie())
.field("pllrdyie", &self.pllrdyie())
.field("hserdyie", &self.hserdyie())
.field("hsirdyie", &self.hsirdyie())
.field("lserdyie", &self.lserdyie())
.field("cssf", &self.cssf())
.field("lsirdyf", &self.lsirdyf())
.field("pllsairdyf", &self.pllsairdyf())
.field("plli2srdyf", &self.plli2srdyf())
.field("pllrdyf", &self.pllrdyf())
.field("hserdyf", &self.hserdyf())
.field("hsirdyf", &self.hsirdyf())
.field("lserdyf", &self.lserdyf())
.finish()
}
}
impl W {
#[inline(always)]
pub fn lsirdyie(&mut self) -> LSIRDYIE_W<CIRrs> {
LSIRDYIE_W::new(self, 8)
}
#[inline(always)]
pub fn lserdyie(&mut self) -> LSERDYIE_W<CIRrs> {
LSERDYIE_W::new(self, 9)
}
#[inline(always)]
pub fn hsirdyie(&mut self) -> HSIRDYIE_W<CIRrs> {
HSIRDYIE_W::new(self, 10)
}
#[inline(always)]
pub fn hserdyie(&mut self) -> HSERDYIE_W<CIRrs> {
HSERDYIE_W::new(self, 11)
}
#[inline(always)]
pub fn pllrdyie(&mut self) -> PLLRDYIE_W<CIRrs> {
PLLRDYIE_W::new(self, 12)
}
#[inline(always)]
pub fn plli2srdyie(&mut self) -> PLLI2SRDYIE_W<CIRrs> {
PLLI2SRDYIE_W::new(self, 13)
}
#[inline(always)]
pub fn pllsairdyie(&mut self) -> PLLSAIRDYIE_W<CIRrs> {
PLLSAIRDYIE_W::new(self, 14)
}
#[inline(always)]
pub fn lsirdyc(&mut self) -> LSIRDYC_W<CIRrs> {
LSIRDYC_W::new(self, 16)
}
#[inline(always)]
pub fn lserdyc(&mut self) -> LSERDYC_W<CIRrs> {
LSERDYC_W::new(self, 17)
}
#[inline(always)]
pub fn hsirdyc(&mut self) -> HSIRDYC_W<CIRrs> {
HSIRDYC_W::new(self, 18)
}
#[inline(always)]
pub fn hserdyc(&mut self) -> HSERDYC_W<CIRrs> {
HSERDYC_W::new(self, 19)
}
#[inline(always)]
pub fn pllrdyc(&mut self) -> PLLRDYC_W<CIRrs> {
PLLRDYC_W::new(self, 20)
}
#[inline(always)]
pub fn plli2srdyc(&mut self) -> PLLI2SRDYC_W<CIRrs> {
PLLI2SRDYC_W::new(self, 21)
}
#[inline(always)]
pub fn pllsairdyc(&mut self) -> PLLSAIRDYC_W<CIRrs> {
PLLSAIRDYC_W::new(self, 22)
}
#[inline(always)]
pub fn cssc(&mut self) -> CSSC_W<CIRrs> {
CSSC_W::new(self, 23)
}
}
pub struct CIRrs;
impl crate::RegisterSpec for CIRrs {
type Ux = u32;
}
impl crate::Readable for CIRrs {}
impl crate::Writable for CIRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CIRrs {}