mcxa_pac/crc0/
gpoly16.rs

1#[doc = "Register `GPOLY16` reader"]
2pub type R = crate::R<Gpoly16Spec>;
3#[doc = "Register `GPOLY16` writer"]
4pub type W = crate::W<Gpoly16Spec>;
5#[cfg(feature = "debug")]
6impl core::fmt::Debug for R {
7    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
8        write!(f, "{}", self.bits())
9    }
10}
11impl W {}
12#[doc = "Polynomial, 16-bit access\n\nYou can [`read`](crate::Reg::read) this register and get [`gpoly16::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`gpoly16::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
13pub struct Gpoly16Spec;
14impl crate::RegisterSpec for Gpoly16Spec {
15    type Ux = u16;
16}
17#[doc = "`read()` method returns [`gpoly16::R`](R) reader structure"]
18impl crate::Readable for Gpoly16Spec {}
19#[doc = "`write(|w| ..)` method takes [`gpoly16::W`](W) writer structure"]
20impl crate::Writable for Gpoly16Spec {
21    type Safety = crate::Unsafe;
22}
23#[doc = "`reset()` method sets GPOLY16 to value 0x1021"]
24impl crate::Resettable for Gpoly16Spec {
25    const RESET_VALUE: u16 = 0x1021;
26}