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