pub type R = crate::R<DFLT0ISRrs>;
pub type W = crate::W<DFLT0ISRrs>;
pub type FTHF_R = crate::BitReader;
pub type DOVRF_R = crate::BitReader;
pub type DOVRF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RXNEF_R = crate::BitReader;
pub type SATF_R = crate::BitReader;
pub type SATF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CKABF_R = crate::BitReader;
pub type CKABF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RFOVRF_R = crate::BitReader;
pub type RFOVRF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SDDETF_R = crate::BitReader;
pub type SDDETF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SDLVLF_R = crate::BitReader;
pub type SDLVLF_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn fthf(&self) -> FTHF_R {
FTHF_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn dovrf(&self) -> DOVRF_R {
DOVRF_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn rxnef(&self) -> RXNEF_R {
RXNEF_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn satf(&self) -> SATF_R {
SATF_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn ckabf(&self) -> CKABF_R {
CKABF_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn rfovrf(&self) -> RFOVRF_R {
RFOVRF_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn sddetf(&self) -> SDDETF_R {
SDDETF_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn sdlvlf(&self) -> SDLVLF_R {
SDLVLF_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("DFLT0ISR")
.field("fthf", &self.fthf())
.field("dovrf", &self.dovrf())
.field("rxnef", &self.rxnef())
.field("satf", &self.satf())
.field("ckabf", &self.ckabf())
.field("rfovrf", &self.rfovrf())
.field("sddetf", &self.sddetf())
.field("sdlvlf", &self.sdlvlf())
.finish()
}
}
impl W {
#[inline(always)]
pub fn dovrf(&mut self) -> DOVRF_W<DFLT0ISRrs> {
DOVRF_W::new(self, 1)
}
#[inline(always)]
pub fn satf(&mut self) -> SATF_W<DFLT0ISRrs> {
SATF_W::new(self, 9)
}
#[inline(always)]
pub fn ckabf(&mut self) -> CKABF_W<DFLT0ISRrs> {
CKABF_W::new(self, 10)
}
#[inline(always)]
pub fn rfovrf(&mut self) -> RFOVRF_W<DFLT0ISRrs> {
RFOVRF_W::new(self, 11)
}
#[inline(always)]
pub fn sddetf(&mut self) -> SDDETF_W<DFLT0ISRrs> {
SDDETF_W::new(self, 12)
}
#[inline(always)]
pub fn sdlvlf(&mut self) -> SDLVLF_W<DFLT0ISRrs> {
SDLVLF_W::new(self, 13)
}
}
pub struct DFLT0ISRrs;
impl crate::RegisterSpec for DFLT0ISRrs {
type Ux = u32;
}
impl crate::Readable for DFLT0ISRrs {}
impl crate::Writable for DFLT0ISRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DFLT0ISRrs {}