pub type R = crate::R<GCRrs>;
pub type W = crate::W<GCRrs>;
pub type SYNCIN_R = crate::FieldReader;
pub type SYNCIN_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type SYNCOUT_R = crate::FieldReader;
pub type SYNCOUT_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
impl R {
#[inline(always)]
pub fn syncin(&self) -> SYNCIN_R {
SYNCIN_R::new((self.bits & 3) as u8)
}
#[inline(always)]
pub fn syncout(&self) -> SYNCOUT_R {
SYNCOUT_R::new(((self.bits >> 4) & 3) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("GCR")
.field("syncin", &self.syncin())
.field("syncout", &self.syncout())
.finish()
}
}
impl W {
#[inline(always)]
pub fn syncin(&mut self) -> SYNCIN_W<GCRrs> {
SYNCIN_W::new(self, 0)
}
#[inline(always)]
pub fn syncout(&mut self) -> SYNCOUT_W<GCRrs> {
SYNCOUT_W::new(self, 4)
}
}
pub struct GCRrs;
impl crate::RegisterSpec for GCRrs {
type Ux = u32;
}
impl crate::Readable for GCRrs {}
impl crate::Writable for GCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for GCRrs {}