pub type R = crate::R<CMPCRrs>;
pub type W = crate::W<CMPCRrs>;
pub type CMP_PD_R = crate::BitReader;
pub type CMP_PD_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type READY_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn cmp_pd(&self) -> CMP_PD_R {
CMP_PD_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn ready(&self) -> READY_R {
READY_R::new(((self.bits >> 7) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CMPCR")
.field("ready", &self.ready())
.field("cmp_pd", &self.cmp_pd())
.finish()
}
}
impl W {
#[inline(always)]
pub fn cmp_pd(&mut self) -> CMP_PD_W<CMPCRrs> {
CMP_PD_W::new(self, 0)
}
}
pub struct CMPCRrs;
impl crate::RegisterSpec for CMPCRrs {
type Ux = u32;
}
impl crate::Readable for CMPCRrs {}
impl crate::Writable for CMPCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CMPCRrs {}