pub type R = crate::R<CMPrs>;
pub type W = crate::W<CMPrs>;
pub type CMP_R = crate::FieldReader<u16>;
pub type CMP_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16, crate::Safe>;
impl R {
#[inline(always)]
pub fn cmp(&self) -> CMP_R {
CMP_R::new((self.bits & 0xffff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CMP").field("cmp", &self.cmp()).finish()
}
}
impl W {
#[inline(always)]
pub fn cmp(&mut self) -> CMP_W<CMPrs> {
CMP_W::new(self, 0)
}
}
pub struct CMPrs;
impl crate::RegisterSpec for CMPrs {
type Ux = u32;
}
impl crate::Readable for CMPrs {}
impl crate::Writable for CMPrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CMPrs {}