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