max78000_pac/crc/
poly.rs

1#[doc = "Register `POLY` reader"]
2pub type R = crate::R<PolySpec>;
3#[doc = "Register `POLY` writer"]
4pub type W = crate::W<PolySpec>;
5#[doc = "Field `POLY` reader - CRC Polynomial"]
6pub type PolyR = crate::FieldReader<u32>;
7#[doc = "Field `POLY` writer - CRC Polynomial"]
8pub type PolyW<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
9impl R {
10    #[doc = "Bits 0:31 - CRC Polynomial"]
11    #[inline(always)]
12    pub fn poly(&self) -> PolyR {
13        PolyR::new(self.bits)
14    }
15}
16impl W {
17    #[doc = "Bits 0:31 - CRC Polynomial"]
18    #[inline(always)]
19    pub fn poly(&mut self) -> PolyW<PolySpec> {
20        PolyW::new(self, 0)
21    }
22}
23#[doc = "CRC Polynomial\n\nYou can [`read`](crate::Reg::read) this register and get [`poly::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`poly::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
24pub struct PolySpec;
25impl crate::RegisterSpec for PolySpec {
26    type Ux = u32;
27}
28#[doc = "`read()` method returns [`poly::R`](R) reader structure"]
29impl crate::Readable for PolySpec {}
30#[doc = "`write(|w| ..)` method takes [`poly::W`](W) writer structure"]
31impl crate::Writable for PolySpec {
32    type Safety = crate::Unsafe;
33    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
34    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
35}
36#[doc = "`reset()` method sets POLY to value 0"]
37impl crate::Resettable for PolySpec {
38    const RESET_VALUE: u32 = 0;
39}