at32f4xx_pac/at32wb415/crc/
poly.rs1#[doc = "Register `POLY` reader"]
2pub type R = crate::R<POLY_SPEC>;
3#[doc = "Register `POLY` writer"]
4pub type W = crate::W<POLY_SPEC>;
5impl core::fmt::Debug for R {
6 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
7 write!(f, "{}", self.bits())
8 }
9}
10impl W {}
11#[doc = "Polynomial coefficient register\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)."]
12pub struct POLY_SPEC;
13impl crate::RegisterSpec for POLY_SPEC {
14 type Ux = u32;
15}
16#[doc = "`read()` method returns [`poly::R`](R) reader structure"]
17impl crate::Readable for POLY_SPEC {}
18#[doc = "`write(|w| ..)` method takes [`poly::W`](W) writer structure"]
19impl crate::Writable for POLY_SPEC {
20 type Safety = crate::Safe;
21}
22#[doc = "`reset()` method sets POLY to value 0x04c1_1db7"]
23impl crate::Resettable for POLY_SPEC {
24 const RESET_VALUE: u32 = 0x04c1_1db7;
25}