pub type R = crate::R<COMP0rs>;
pub type W = crate::W<COMP0rs>;
pub type Comp0R = crate::FieldReader<u16>;
pub type Comp0W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
impl R {
#[inline(always)]
pub fn comp0(&self) -> Comp0R {
Comp0R::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("COMP0")
.field("comp0", &self.comp0())
.finish()
}
}
impl W {
#[inline(always)]
pub fn comp0(&mut self) -> Comp0W<'_, COMP0rs> {
Comp0W::new(self, 0)
}
}
pub struct COMP0rs;
impl crate::RegisterSpec for COMP0rs {
type Ux = u32;
}
impl crate::Readable for COMP0rs {}
impl crate::Writable for COMP0rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for COMP0rs {}