pub type R = crate::R<CCRrs>;
pub type W = crate::W<CCRrs>;
pub type TRIM_R = crate::FieldReader;
pub type TRIM_W<'a, REG> = crate::FieldWriter<'a, REG, 6>;
impl R {
#[inline(always)]
pub fn trim(&self) -> TRIM_R {
TRIM_R::new((self.bits & 0x3f) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CCR").field("trim", &self.trim()).finish()
}
}
impl W {
#[inline(always)]
pub fn trim(&mut self) -> TRIM_W<CCRrs> {
TRIM_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 {}