pub type R = crate::R<CRCPOLYrs>;
pub type W = crate::W<CRCPOLYrs>;
pub type CRCPOLY_R = crate::FieldReader<u32>;
pub type CRCPOLY_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32, 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("CRCPOLY").field("crcpoly", &self.crcpoly()).finish()
}
}
impl W {
#[inline(always)]
pub fn crcpoly(&mut self) -> CRCPOLY_W<CRCPOLYrs> {
CRCPOLY_W::new(self, 0)
}
}
pub struct CRCPOLYrs;
impl crate::RegisterSpec for CRCPOLYrs {
type Ux = u32;
}
impl crate::Readable for CRCPOLYrs {}
impl crate::Writable for CRCPOLYrs {
type Safety = crate::Safe;
}
impl crate::Resettable for CRCPOLYrs {
const RESET_VALUE: u32 = 0x0107;
}