esp32c6/atomic/
lock_status.rs

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