pub type R = crate::R<IENrs>;
pub type W = crate::W<IENrs>;
pub type ToutR = crate::BitReader;
pub type ToutW<'a, REG> = crate::BitWriter<'a, REG>;
pub type WarnR = crate::BitReader;
pub type WarnW<'a, REG> = crate::BitWriter<'a, REG>;
pub type WinR = crate::BitReader;
pub type WinW<'a, REG> = crate::BitWriter<'a, REG>;
pub type Pem0R = crate::BitReader;
pub type Pem0W<'a, REG> = crate::BitWriter<'a, REG>;
pub type Pem1R = crate::BitReader;
pub type Pem1W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn tout(&self) -> ToutR {
ToutR::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn warn(&self) -> WarnR {
WarnR::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn win(&self) -> WinR {
WinR::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn pem0(&self) -> Pem0R {
Pem0R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn pem1(&self) -> Pem1R {
Pem1R::new(((self.bits >> 4) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("IEN")
.field("tout", &self.tout())
.field("warn", &self.warn())
.field("win", &self.win())
.field("pem0", &self.pem0())
.field("pem1", &self.pem1())
.finish()
}
}
impl W {
#[inline(always)]
pub fn tout(&mut self) -> ToutW<'_, IENrs> {
ToutW::new(self, 0)
}
#[inline(always)]
pub fn warn(&mut self) -> WarnW<'_, IENrs> {
WarnW::new(self, 1)
}
#[inline(always)]
pub fn win(&mut self) -> WinW<'_, IENrs> {
WinW::new(self, 2)
}
#[inline(always)]
pub fn pem0(&mut self) -> Pem0W<'_, IENrs> {
Pem0W::new(self, 3)
}
#[inline(always)]
pub fn pem1(&mut self) -> Pem1W<'_, IENrs> {
Pem1W::new(self, 4)
}
}
pub struct IENrs;
impl crate::RegisterSpec for IENrs {
type Ux = u32;
}
impl crate::Readable for IENrs {}
impl crate::Writable for IENrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for IENrs {}