mcxa_pac/syscon/
els_otp_lc_state_dp.rs

1#[doc = "Register `ELS_OTP_LC_STATE_DP` reader"]
2pub type R = crate::R<ElsOtpLcStateDpSpec>;
3#[doc = "Field `OTP_LC_STATE_DP` reader - OTP life cycle state"]
4pub type OtpLcStateDpR = crate::FieldReader;
5impl R {
6    #[doc = "Bits 0:7 - OTP life cycle state"]
7    #[inline(always)]
8    pub fn otp_lc_state_dp(&self) -> OtpLcStateDpR {
9        OtpLcStateDpR::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_DP")
16            .field("otp_lc_state_dp", &self.otp_lc_state_dp())
17            .finish()
18    }
19}
20#[doc = "Life Cycle State Register (Duplicate)\n\nYou can [`read`](crate::Reg::read) this register and get [`els_otp_lc_state_dp::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct ElsOtpLcStateDpSpec;
22impl crate::RegisterSpec for ElsOtpLcStateDpSpec {
23    type Ux = u32;
24}
25#[doc = "`read()` method returns [`els_otp_lc_state_dp::R`](R) reader structure"]
26impl crate::Readable for ElsOtpLcStateDpSpec {}
27#[doc = "`reset()` method sets ELS_OTP_LC_STATE_DP to value 0"]
28impl crate::Resettable for ElsOtpLcStateDpSpec {}