pub type R = crate::R<L1CKCRrs>;
pub type W = crate::W<L1CKCRrs>;
pub type CKBLUE_R = crate::FieldReader;
pub type CKBLUE_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type CKGREEN_R = crate::FieldReader;
pub type CKGREEN_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type CKRED_R = crate::FieldReader;
pub type CKRED_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
impl R {
#[inline(always)]
pub fn ckblue(&self) -> CKBLUE_R {
CKBLUE_R::new((self.bits & 0xff) as u8)
}
#[inline(always)]
pub fn ckgreen(&self) -> CKGREEN_R {
CKGREEN_R::new(((self.bits >> 8) & 0xff) as u8)
}
#[inline(always)]
pub fn ckred(&self) -> CKRED_R {
CKRED_R::new(((self.bits >> 16) & 0xff) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("L1CKCR")
.field("ckblue", &self.ckblue())
.field("ckgreen", &self.ckgreen())
.field("ckred", &self.ckred())
.finish()
}
}
impl W {
#[inline(always)]
pub fn ckblue(&mut self) -> CKBLUE_W<L1CKCRrs> {
CKBLUE_W::new(self, 0)
}
#[inline(always)]
pub fn ckgreen(&mut self) -> CKGREEN_W<L1CKCRrs> {
CKGREEN_W::new(self, 8)
}
#[inline(always)]
pub fn ckred(&mut self) -> CKRED_W<L1CKCRrs> {
CKRED_W::new(self, 16)
}
}
pub struct L1CKCRrs;
impl crate::RegisterSpec for L1CKCRrs {
type Ux = u32;
}
impl crate::Readable for L1CKCRrs {}
impl crate::Writable for L1CKCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for L1CKCRrs {}