pub type R = crate::R<CCVRrs>;
pub type NCV_R = crate::FieldReader;
pub type PCV_R = crate::FieldReader;
impl R {
#[inline(always)]
pub fn ncv(&self) -> NCV_R {
NCV_R::new((self.bits & 0x0f) as u8)
}
#[inline(always)]
pub fn pcv(&self) -> PCV_R {
PCV_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("CCVR")
.field("ncv", &self.ncv())
.field("pcv", &self.pcv())
.finish()
}
}
pub struct CCVRrs;
impl crate::RegisterSpec for CCVRrs {
type Ux = u32;
}
impl crate::Readable for CCVRrs {}
impl crate::Resettable for CCVRrs {}