pub type R = crate::R<DFLT0RSFRrs>;
pub type W = crate::W<DFLT0RSFRrs>;
pub type RSFLTBYP_R = crate::BitReader;
pub type RSFLTBYP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RSFLTD_R = crate::BitReader;
pub type RSFLTD_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type HPFBYP_R = crate::BitReader;
pub type HPFBYP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type HPFC_R = crate::FieldReader;
pub type HPFC_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
impl R {
#[inline(always)]
pub fn rsfltbyp(&self) -> RSFLTBYP_R {
RSFLTBYP_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn rsfltd(&self) -> RSFLTD_R {
RSFLTD_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn hpfbyp(&self) -> HPFBYP_R {
HPFBYP_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn hpfc(&self) -> HPFC_R {
HPFC_R::new(((self.bits >> 8) & 3) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DFLT0RSFR")
.field("rsfltbyp", &self.rsfltbyp())
.field("rsfltd", &self.rsfltd())
.field("hpfbyp", &self.hpfbyp())
.field("hpfc", &self.hpfc())
.finish()
}
}
impl W {
#[inline(always)]
pub fn rsfltbyp(&mut self) -> RSFLTBYP_W<DFLT0RSFRrs> {
RSFLTBYP_W::new(self, 0)
}
#[inline(always)]
pub fn rsfltd(&mut self) -> RSFLTD_W<DFLT0RSFRrs> {
RSFLTD_W::new(self, 4)
}
#[inline(always)]
pub fn hpfbyp(&mut self) -> HPFBYP_W<DFLT0RSFRrs> {
HPFBYP_W::new(self, 7)
}
#[inline(always)]
pub fn hpfc(&mut self) -> HPFC_W<DFLT0RSFRrs> {
HPFC_W::new(self, 8)
}
}
pub struct DFLT0RSFRrs;
impl crate::RegisterSpec for DFLT0RSFRrs {
type Ux = u32;
}
impl crate::Readable for DFLT0RSFRrs {}
impl crate::Writable for DFLT0RSFRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DFLT0RSFRrs {}