pub type W = crate::W<IFSrs>;
pub type ToutW<'a, REG> = crate::BitWriter<'a, REG>;
pub type WarnW<'a, REG> = crate::BitWriter<'a, REG>;
pub type WinW<'a, REG> = crate::BitWriter<'a, REG>;
pub type Pem0W<'a, REG> = crate::BitWriter<'a, REG>;
pub type Pem1W<'a, REG> = crate::BitWriter<'a, REG>;
impl core::fmt::Debug for crate::generic::Reg<IFSrs> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
write!(f, "(not readable)")
}
}
impl W {
#[inline(always)]
pub fn tout(&mut self) -> ToutW<'_, IFSrs> {
ToutW::new(self, 0)
}
#[inline(always)]
pub fn warn(&mut self) -> WarnW<'_, IFSrs> {
WarnW::new(self, 1)
}
#[inline(always)]
pub fn win(&mut self) -> WinW<'_, IFSrs> {
WinW::new(self, 2)
}
#[inline(always)]
pub fn pem0(&mut self) -> Pem0W<'_, IFSrs> {
Pem0W::new(self, 3)
}
#[inline(always)]
pub fn pem1(&mut self) -> Pem1W<'_, IFSrs> {
Pem1W::new(self, 4)
}
}
pub struct IFSrs;
impl crate::RegisterSpec for IFSrs {
type Ux = u32;
}
impl crate::Writable for IFSrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for IFSrs {}