mcxa_pac/syscon/
els_otp_lc_state.rs

1#[doc = "Register `ELS_OTP_LC_STATE` reader"]
2pub type R = crate::R<ElsOtpLcStateSpec>;
3#[doc = "Field `OTP_LC_STATE` reader - OTP life cycle state"]
4pub type OtpLcStateR = crate::FieldReader;
5impl R {
6    #[doc = "Bits 0:7 - OTP life cycle state"]
7    #[inline(always)]
8    pub fn otp_lc_state(&self) -> OtpLcStateR {
9        OtpLcStateR::new((self.bits & 0xff) as u8)
10    }
11}
12#[cfg(feature = "debug")]
13impl core::fmt::Debug for R {
14    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
15        f.debug_struct("ELS_OTP_LC_STATE")
16            .field("otp_lc_state", &self.otp_lc_state())
17            .finish()
18    }
19}
20#[doc = "Life Cycle State Register\n\nYou can [`read`](crate::Reg::read) this register and get [`els_otp_lc_state::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct ElsOtpLcStateSpec;
22impl crate::RegisterSpec for ElsOtpLcStateSpec {
23    type Ux = u32;
24}
25#[doc = "`read()` method returns [`els_otp_lc_state::R`](R) reader structure"]
26impl crate::Readable for ElsOtpLcStateSpec {}
27#[doc = "`reset()` method sets ELS_OTP_LC_STATE to value 0"]
28impl crate::Resettable for ElsOtpLcStateSpec {}