atsamd51n/nvmctrl/
runlock.rs
1#[doc = "Register `RUNLOCK` reader"]
2pub type R = crate::R<RunlockSpec>;
3#[doc = "Field `RUNLOCK` reader - Region Un-Lock Bits"]
4pub type RunlockR = crate::FieldReader<u32>;
5impl R {
6 #[doc = "Bits 0:31 - Region Un-Lock Bits"]
7 #[inline(always)]
8 pub fn runlock(&self) -> RunlockR {
9 RunlockR::new(self.bits)
10 }
11}
12#[doc = "Lock Section\n\nYou can [`read`](crate::Reg::read) this register and get [`runlock::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
13pub struct RunlockSpec;
14impl crate::RegisterSpec for RunlockSpec {
15 type Ux = u32;
16}
17#[doc = "`read()` method returns [`runlock::R`](R) reader structure"]
18impl crate::Readable for RunlockSpec {}
19#[doc = "`reset()` method sets RUNLOCK to value 0"]
20impl crate::Resettable for RunlockSpec {
21 const RESET_VALUE: u32 = 0;
22}