pub type R = crate::R<WIERrs>;
pub type W = crate::W<WIERrs>;
pub type TEIE_R = crate::BitReader;
pub type TEIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ERIE_R = crate::BitReader;
pub type ERIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PLLLIE_R = crate::BitReader;
pub type PLLLIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PLLUIE_R = crate::BitReader;
pub type PLLUIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RRIE_R = crate::BitReader;
pub type RRIE_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn teie(&self) -> TEIE_R {
TEIE_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn erie(&self) -> ERIE_R {
ERIE_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn plllie(&self) -> PLLLIE_R {
PLLLIE_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn plluie(&self) -> PLLUIE_R {
PLLUIE_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn rrie(&self) -> RRIE_R {
RRIE_R::new(((self.bits >> 13) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("WIER")
.field("teie", &self.teie())
.field("erie", &self.erie())
.field("plllie", &self.plllie())
.field("plluie", &self.plluie())
.field("rrie", &self.rrie())
.finish()
}
}
impl W {
#[inline(always)]
pub fn teie(&mut self) -> TEIE_W<WIERrs> {
TEIE_W::new(self, 0)
}
#[inline(always)]
pub fn erie(&mut self) -> ERIE_W<WIERrs> {
ERIE_W::new(self, 1)
}
#[inline(always)]
pub fn plllie(&mut self) -> PLLLIE_W<WIERrs> {
PLLLIE_W::new(self, 9)
}
#[inline(always)]
pub fn plluie(&mut self) -> PLLUIE_W<WIERrs> {
PLLUIE_W::new(self, 10)
}
#[inline(always)]
pub fn rrie(&mut self) -> RRIE_W<WIERrs> {
RRIE_W::new(self, 13)
}
}
pub struct WIERrs;
impl crate::RegisterSpec for WIERrs {
type Ux = u32;
}
impl crate::Readable for WIERrs {}
impl crate::Writable for WIERrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for WIERrs {}