pub type R = crate::R<FLTCRrs>;
pub type W = crate::W<FLTCRrs>;
pub type TAMPFREQ_R = crate::FieldReader;
pub type TAMPFREQ_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
pub type TAMPFLT_R = crate::FieldReader;
pub type TAMPFLT_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type TAMPPRCH_R = crate::FieldReader;
pub type TAMPPRCH_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type TAMPPUDIS_R = crate::BitReader;
pub type TAMPPUDIS_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn tampfreq(&self) -> TAMPFREQ_R {
TAMPFREQ_R::new((self.bits & 7) as u8)
}
#[inline(always)]
pub fn tampflt(&self) -> TAMPFLT_R {
TAMPFLT_R::new(((self.bits >> 3) & 3) as u8)
}
#[inline(always)]
pub fn tampprch(&self) -> TAMPPRCH_R {
TAMPPRCH_R::new(((self.bits >> 5) & 3) as u8)
}
#[inline(always)]
pub fn tamppudis(&self) -> TAMPPUDIS_R {
TAMPPUDIS_R::new(((self.bits >> 7) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("FLTCR")
.field("tampfreq", &self.tampfreq())
.field("tampflt", &self.tampflt())
.field("tampprch", &self.tampprch())
.field("tamppudis", &self.tamppudis())
.finish()
}
}
impl W {
#[inline(always)]
pub fn tampfreq(&mut self) -> TAMPFREQ_W<FLTCRrs> {
TAMPFREQ_W::new(self, 0)
}
#[inline(always)]
pub fn tampflt(&mut self) -> TAMPFLT_W<FLTCRrs> {
TAMPFLT_W::new(self, 3)
}
#[inline(always)]
pub fn tampprch(&mut self) -> TAMPPRCH_W<FLTCRrs> {
TAMPPRCH_W::new(self, 5)
}
#[inline(always)]
pub fn tamppudis(&mut self) -> TAMPPUDIS_W<FLTCRrs> {
TAMPPUDIS_W::new(self, 7)
}
}
pub struct FLTCRrs;
impl crate::RegisterSpec for FLTCRrs {
type Ux = u32;
}
impl crate::Readable for FLTCRrs {}
impl crate::Writable for FLTCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for FLTCRrs {}