pub type R = crate::R<OVSCFGrs>;
pub type W = crate::W<OVSCFGrs>;
pub type FiltlenR = crate::FieldReader;
pub type FiltlenW<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type FlutterrmR = crate::BitReader;
pub type FlutterrmW<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn filtlen(&self) -> FiltlenR {
FiltlenR::new((self.bits & 0xff) as u8)
}
#[inline(always)]
pub fn flutterrm(&self) -> FlutterrmR {
FlutterrmR::new(((self.bits >> 12) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("OVSCFG")
.field("filtlen", &self.filtlen())
.field("flutterrm", &self.flutterrm())
.finish()
}
}
impl W {
#[inline(always)]
pub fn filtlen(&mut self) -> FiltlenW<'_, OVSCFGrs> {
FiltlenW::new(self, 0)
}
#[inline(always)]
pub fn flutterrm(&mut self) -> FlutterrmW<'_, OVSCFGrs> {
FlutterrmW::new(self, 12)
}
}
pub struct OVSCFGrs;
impl crate::RegisterSpec for OVSCFGrs {
type Ux = u32;
}
impl crate::Readable for OVSCFGrs {}
impl crate::Writable for OVSCFGrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for OVSCFGrs {}