pub type R = crate::R<CCCRrs>;
pub type W = crate::W<CCCRrs>;
pub type NCC_R = crate::FieldReader;
pub type NCC_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
pub type PCC_R = crate::FieldReader;
pub type PCC_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
impl R {
#[inline(always)]
pub fn ncc(&self) -> NCC_R {
NCC_R::new((self.bits & 0x0f) as u8)
}
#[inline(always)]
pub fn pcc(&self) -> PCC_R {
PCC_R::new(((self.bits >> 4) & 0x0f) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CCCR")
.field("ncc", &self.ncc())
.field("pcc", &self.pcc())
.finish()
}
}
impl W {
#[inline(always)]
pub fn ncc(&mut self) -> NCC_W<CCCRrs> {
NCC_W::new(self, 0)
}
#[inline(always)]
pub fn pcc(&mut self) -> PCC_W<CCCRrs> {
PCC_W::new(self, 4)
}
}
pub struct CCCRrs;
impl crate::RegisterSpec for CCCRrs {
type Ux = u32;
}
impl crate::Readable for CCCRrs {}
impl crate::Writable for CCCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CCCRrs {}