atsamd51j/system_control/
pfr.rs
1#[doc = "Register `PFR[%s]` reader"]
2pub type R = crate::R<PfrSpec>;
3#[doc = "Register `PFR[%s]` writer"]
4pub type W = crate::W<PfrSpec>;
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 = "Processor Feature Register\n\nYou can [`read`](crate::Reg::read) this register and get [`pfr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pfr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
12pub struct PfrSpec;
13impl crate::RegisterSpec for PfrSpec {
14 type Ux = u32;
15}
16#[doc = "`read()` method returns [`pfr::R`](R) reader structure"]
17impl crate::Readable for PfrSpec {}
18#[doc = "`write(|w| ..)` method takes [`pfr::W`](W) writer structure"]
19impl crate::Writable for PfrSpec {
20 type Safety = crate::Unsafe;
21 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
22 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
23}
24#[doc = "`reset()` method sets PFR[%s]
25to value 0"]
26impl crate::Resettable for PfrSpec {
27 const RESET_VALUE: u32 = 0;
28}