pub type R = crate::R<CHENrs>;
pub type W = crate::W<CHENrs>;
pub type ChenR = crate::FieldReader;
pub type ChenW<'a, REG> = crate::FieldWriter<'a, REG, 8>;
impl R {
#[inline(always)]
pub fn chen(&self) -> ChenR {
ChenR::new((self.bits & 0xff) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CHEN").field("chen", &self.chen()).finish()
}
}
impl W {
#[inline(always)]
pub fn chen(&mut self) -> ChenW<'_, CHENrs> {
ChenW::new(self, 0)
}
}
pub struct CHENrs;
impl crate::RegisterSpec for CHENrs {
type Ux = u32;
}
impl crate::Readable for CHENrs {}
impl crate::Writable for CHENrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CHENrs {}