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