mcxa_pac/syscon/
rop_state.rs

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