atsamd51n/aes/
indata.rs

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