atsamd51g/qspi/
scrambkey.rs
1#[doc = "Register `SCRAMBKEY` writer"]
2pub type W = crate::W<ScrambkeySpec>;
3#[doc = "Field `KEY` writer - Scrambling User Key"]
4pub type KeyW<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
5impl W {
6 #[doc = "Bits 0:31 - Scrambling User Key"]
7 #[inline(always)]
8 #[must_use]
9 pub fn key(&mut self) -> KeyW<ScrambkeySpec> {
10 KeyW::new(self, 0)
11 }
12}
13#[doc = "Scrambling Key\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`scrambkey::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
14pub struct ScrambkeySpec;
15impl crate::RegisterSpec for ScrambkeySpec {
16 type Ux = u32;
17}
18#[doc = "`write(|w| ..)` method takes [`scrambkey::W`](W) writer structure"]
19impl crate::Writable for ScrambkeySpec {
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 SCRAMBKEY to value 0"]
25impl crate::Resettable for ScrambkeySpec {
26 const RESET_VALUE: u32 = 0;
27}