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