pub type R = crate::R<CTRLrs>;
pub type W = crate::W<CTRLrs>;
pub type SyncprssetenR = crate::FieldReader;
pub type SyncprssetenW<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type SyncprsclrenR = crate::FieldReader;
pub type SyncprsclrenW<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type NumfixedR = crate::FieldReader;
pub type NumfixedW<'a, REG> = crate::FieldWriter<'a, REG, 3>;
impl R {
#[inline(always)]
pub fn syncprsseten(&self) -> SyncprssetenR {
SyncprssetenR::new((self.bits & 0xff) as u8)
}
#[inline(always)]
pub fn syncprsclren(&self) -> SyncprsclrenR {
SyncprsclrenR::new(((self.bits >> 8) & 0xff) as u8)
}
#[inline(always)]
pub fn numfixed(&self) -> NumfixedR {
NumfixedR::new(((self.bits >> 24) & 7) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CTRL")
.field("syncprsseten", &self.syncprsseten())
.field("syncprsclren", &self.syncprsclren())
.field("numfixed", &self.numfixed())
.finish()
}
}
impl W {
#[inline(always)]
pub fn syncprsseten(&mut self) -> SyncprssetenW<'_, CTRLrs> {
SyncprssetenW::new(self, 0)
}
#[inline(always)]
pub fn syncprsclren(&mut self) -> SyncprsclrenW<'_, CTRLrs> {
SyncprsclrenW::new(self, 8)
}
#[inline(always)]
pub fn numfixed(&mut self) -> NumfixedW<'_, CTRLrs> {
NumfixedW::new(self, 24)
}
}
pub struct CTRLrs;
impl crate::RegisterSpec for CTRLrs {
type Ux = u32;
}
impl crate::Readable for CTRLrs {}
impl crate::Writable for CTRLrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CTRLrs {
const RESET_VALUE: u32 = 0x0700_0000;
}