pub type R = crate::R<SYNCrs>;
pub type W = crate::W<SYNCrs>;
pub type SynctrigR = crate::FieldReader;
pub type SynctrigW<'a, REG> = crate::FieldWriter<'a, REG, 8>;
impl R {
#[inline(always)]
pub fn synctrig(&self) -> SynctrigR {
SynctrigR::new((self.bits & 0xff) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SYNC")
.field("synctrig", &self.synctrig())
.finish()
}
}
impl W {
#[inline(always)]
pub fn synctrig(&mut self) -> SynctrigW<'_, SYNCrs> {
SynctrigW::new(self, 0)
}
}
pub struct SYNCrs;
impl crate::RegisterSpec for SYNCrs {
type Ux = u32;
}
impl crate::Readable for SYNCrs {}
impl crate::Writable for SYNCrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for SYNCrs {}