pub type R = crate::R<IFrs>;
pub type ToutR = crate::BitReader;
pub type WarnR = crate::BitReader;
pub type WinR = crate::BitReader;
pub type Pem0R = crate::BitReader;
pub type Pem1R = crate::BitReader;
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("IF")
.field("tout", &self.tout())
.field("warn", &self.warn())
.field("win", &self.win())
.field("pem0", &self.pem0())
.field("pem1", &self.pem1())
.finish()
}
}
pub struct IFrs;
impl crate::RegisterSpec for IFrs {
type Ux = u32;
}
impl crate::Readable for IFrs {}
impl crate::Resettable for IFrs {}