atsam3s8c/gpbr/
gpbr6.rs

1#[doc = "Register `GPBR6` reader"]
2pub type R = crate::R<Gpbr6Spec>;
3#[doc = "Register `GPBR6` writer"]
4pub type W = crate::W<Gpbr6Spec>;
5#[doc = "Field `GPBR_VALUE` reader - Value of GPBR x"]
6pub type GpbrValueR = crate::FieldReader<u32>;
7#[doc = "Field `GPBR_VALUE` writer - Value of GPBR x"]
8pub type GpbrValueW<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
9impl R {
10    #[doc = "Bits 0:31 - Value of GPBR x"]
11    #[inline(always)]
12    pub fn gpbr_value(&self) -> GpbrValueR {
13        GpbrValueR::new(self.bits)
14    }
15}
16impl W {
17    #[doc = "Bits 0:31 - Value of GPBR x"]
18    #[inline(always)]
19    #[must_use]
20    pub fn gpbr_value(&mut self) -> GpbrValueW<Gpbr6Spec> {
21        GpbrValueW::new(self, 0)
22    }
23}
24#[doc = "General Purpose Backup Register 6\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gpbr6::R`](R).  You can [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`gpbr6::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
25pub struct Gpbr6Spec;
26impl crate::RegisterSpec for Gpbr6Spec {
27    type Ux = u32;
28}
29#[doc = "`read()` method returns [`gpbr6::R`](R) reader structure"]
30impl crate::Readable for Gpbr6Spec {}
31#[doc = "`write(|w| ..)` method takes [`gpbr6::W`](W) writer structure"]
32impl crate::Writable for Gpbr6Spec {
33    type Safety = crate::Unsafe;
34    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
35    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
36}