pub type R = crate::R<CRCPRrs>;
pub type W = crate::W<CRCPRrs>;
pub type CRCPOLY_R = crate::FieldReader<u16>;
pub type CRCPOLY_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16, crate::Safe>;
impl R {
#[inline(always)]
pub fn crcpoly(&self) -> CRCPOLY_R {
CRCPOLY_R::new(self.bits)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CRCPR")
.field("crcpoly", &self.crcpoly())
.finish()
}
}
impl W {
#[inline(always)]
pub fn crcpoly(&mut self) -> CRCPOLY_W<CRCPRrs> {
CRCPOLY_W::new(self, 0)
}
}
pub struct CRCPRrs;
impl crate::RegisterSpec for CRCPRrs {
type Ux = u16;
}
impl crate::Readable for CRCPRrs {}
impl crate::Writable for CRCPRrs {
type Safety = crate::Safe;
}
impl crate::Resettable for CRCPRrs {
const RESET_VALUE: u16 = 0x07;
}