pub type R = crate::R<PERIODSELrs>;
pub type W = crate::W<PERIODSELrs>;
pub type PeriodselR = crate::FieldReader;
pub type PeriodselW<'a, REG> = crate::FieldWriter<'a, REG, 6>;
impl R {
#[inline(always)]
pub fn periodsel(&self) -> PeriodselR {
PeriodselR::new((self.bits & 0x3f) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("PERIODSEL")
.field("periodsel", &self.periodsel())
.finish()
}
}
impl W {
#[inline(always)]
pub fn periodsel(&mut self) -> PeriodselW<'_, PERIODSELrs> {
PeriodselW::new(self, 0)
}
}
pub struct PERIODSELrs;
impl crate::RegisterSpec for PERIODSELrs {
type Ux = u32;
}
impl crate::Readable for PERIODSELrs {}
impl crate::Writable for PERIODSELrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for PERIODSELrs {
const RESET_VALUE: u32 = 0x20;
}