pub type R = crate::R<CCVALRrs>;
pub type NSRC_R = crate::FieldReader;
pub type PSRC_R = crate::FieldReader;
pub type OCTO1_NSRC_R = crate::FieldReader;
pub type OCTO1_PSRC_R = crate::FieldReader;
pub type OCTO2_NSRC_R = crate::FieldReader;
pub type OCTO2_PSRC_R = crate::FieldReader;
impl R {
#[inline(always)]
pub fn nsrc(&self) -> NSRC_R {
NSRC_R::new((self.bits & 0x0f) as u8)
}
#[inline(always)]
pub fn psrc(&self) -> PSRC_R {
PSRC_R::new(((self.bits >> 4) & 0x0f) as u8)
}
#[inline(always)]
pub fn octo1_nsrc(&self) -> OCTO1_NSRC_R {
OCTO1_NSRC_R::new(((self.bits >> 8) & 0x0f) as u8)
}
#[inline(always)]
pub fn octo1_psrc(&self) -> OCTO1_PSRC_R {
OCTO1_PSRC_R::new(((self.bits >> 12) & 0x0f) as u8)
}
#[inline(always)]
pub fn octo2_nsrc(&self) -> OCTO2_NSRC_R {
OCTO2_NSRC_R::new(((self.bits >> 16) & 0x0f) as u8)
}
#[inline(always)]
pub fn octo2_psrc(&self) -> OCTO2_PSRC_R {
OCTO2_PSRC_R::new(((self.bits >> 20) & 0x0f) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CCVALR")
.field("nsrc", &self.nsrc())
.field("psrc", &self.psrc())
.field("octo1_nsrc", &self.octo1_nsrc())
.field("octo1_psrc", &self.octo1_psrc())
.field("octo2_nsrc", &self.octo2_nsrc())
.field("octo2_psrc", &self.octo2_psrc())
.finish()
}
}
pub struct CCVALRrs;
impl crate::RegisterSpec for CCVALRrs {
type Ux = u32;
}
impl crate::Readable for CCVALRrs {}
impl crate::Resettable for CCVALRrs {
const RESET_VALUE: u32 = 0x88;
}