pub type R = crate::R<CHDONErs>;
pub type W = crate::W<CHDONErs>;
pub type ChdoneR = crate::FieldReader;
pub type ChdoneW<'a, REG> = crate::FieldWriter<'a, REG, 8>;
impl R {
#[inline(always)]
pub fn chdone(&self) -> ChdoneR {
ChdoneR::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("CHDONE")
.field("chdone", &self.chdone())
.finish()
}
}
impl W {
#[inline(always)]
pub fn chdone(&mut self) -> ChdoneW<'_, CHDONErs> {
ChdoneW::new(self, 0)
}
}
pub struct CHDONErs;
impl crate::RegisterSpec for CHDONErs {
type Ux = u32;
}
impl crate::Readable for CHDONErs {}
impl crate::Writable for CHDONErs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CHDONErs {}