pub type R = crate::R<POLYrs>;
pub type W = crate::W<POLYrs>;
pub type PolyR = crate::FieldReader<u16>;
pub type PolyW<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
impl R {
#[inline(always)]
pub fn poly(&self) -> PolyR {
PolyR::new((self.bits & 0xffff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("POLY").field("poly", &self.poly()).finish()
}
}
impl W {
#[inline(always)]
pub fn poly(&mut self) -> PolyW<'_, POLYrs> {
PolyW::new(self, 0)
}
}
pub struct POLYrs;
impl crate::RegisterSpec for POLYrs {
type Ux = u32;
}
impl crate::Readable for POLYrs {}
impl crate::Writable for POLYrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for POLYrs {}