pub type R = crate::R<CMP1CRrs>;
pub type W = crate::W<CMP1CRrs>;
pub type CMP1_R = crate::FieldReader<u16>;
pub type CMP1_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16, crate::Safe>;
pub type REP_R = crate::FieldReader;
pub type REP_W<'a, REG> = crate::FieldWriter<'a, REG, 8, u8, crate::Safe>;
impl R {
#[inline(always)]
pub fn cmp1(&self) -> CMP1_R {
CMP1_R::new((self.bits & 0xffff) as u16)
}
#[inline(always)]
pub fn rep(&self) -> REP_R {
REP_R::new(((self.bits >> 16) & 0xff) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CMP1CR")
.field("rep", &self.rep())
.field("cmp1", &self.cmp1())
.finish()
}
}
impl W {
#[inline(always)]
pub fn cmp1(&mut self) -> CMP1_W<CMP1CRrs> {
CMP1_W::new(self, 0)
}
#[inline(always)]
pub fn rep(&mut self) -> REP_W<CMP1CRrs> {
REP_W::new(self, 16)
}
}
pub struct CMP1CRrs;
impl crate::RegisterSpec for CMP1CRrs {
type Ux = u32;
}
impl crate::Readable for CMP1CRrs {}
impl crate::Writable for CMP1CRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CMP1CRrs {}