pub type R = crate::R<CIERrs>;
pub type W = crate::W<CIERrs>;
pub type LSIRDYIE_R = crate::BitReader;
pub type LSIRDYIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type LSERDYIE_R = crate::BitReader;
pub type LSERDYIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type HSIRDYIE_R = crate::BitReader;
pub type HSIRDYIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type HSERDYIE_R = crate::BitReader;
pub type HSERDYIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PLLRDYIE_R = crate::BitReader;
pub type PLLRDYIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type LSECSSIE_R = crate::BitReader;
pub type LSECSSIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type HSI48RDYIE_R = crate::BitReader;
pub type HSI48RDYIE_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn lsirdyie(&self) -> LSIRDYIE_R {
LSIRDYIE_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn lserdyie(&self) -> LSERDYIE_R {
LSERDYIE_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn hsirdyie(&self) -> HSIRDYIE_R {
HSIRDYIE_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn hserdyie(&self) -> HSERDYIE_R {
HSERDYIE_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn pllrdyie(&self) -> PLLRDYIE_R {
PLLRDYIE_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn lsecssie(&self) -> LSECSSIE_R {
LSECSSIE_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn hsi48rdyie(&self) -> HSI48RDYIE_R {
HSI48RDYIE_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("CIER")
.field("lsirdyie", &self.lsirdyie())
.field("lserdyie", &self.lserdyie())
.field("hsirdyie", &self.hsirdyie())
.field("hserdyie", &self.hserdyie())
.field("pllrdyie", &self.pllrdyie())
.field("lsecssie", &self.lsecssie())
.field("hsi48rdyie", &self.hsi48rdyie())
.finish()
}
}
impl W {
#[inline(always)]
pub fn lsirdyie(&mut self) -> LSIRDYIE_W<CIERrs> {
LSIRDYIE_W::new(self, 0)
}
#[inline(always)]
pub fn lserdyie(&mut self) -> LSERDYIE_W<CIERrs> {
LSERDYIE_W::new(self, 1)
}
#[inline(always)]
pub fn hsirdyie(&mut self) -> HSIRDYIE_W<CIERrs> {
HSIRDYIE_W::new(self, 3)
}
#[inline(always)]
pub fn hserdyie(&mut self) -> HSERDYIE_W<CIERrs> {
HSERDYIE_W::new(self, 4)
}
#[inline(always)]
pub fn pllrdyie(&mut self) -> PLLRDYIE_W<CIERrs> {
PLLRDYIE_W::new(self, 5)
}
#[inline(always)]
pub fn lsecssie(&mut self) -> LSECSSIE_W<CIERrs> {
LSECSSIE_W::new(self, 9)
}
#[inline(always)]
pub fn hsi48rdyie(&mut self) -> HSI48RDYIE_W<CIERrs> {
HSI48RDYIE_W::new(self, 10)
}
}
pub struct CIERrs;
impl crate::RegisterSpec for CIERrs {
type Ux = u32;
}
impl crate::Readable for CIERrs {}
impl crate::Writable for CIERrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CIERrs {}