rp2040_pac/sio/
spinlock_st.rs
1#[doc = "Register `SPINLOCK_ST` reader"]
2pub type R = crate::R<SPINLOCK_ST_SPEC>;
3impl core::fmt::Debug for R {
4 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
5 write!(f, "{}", self.bits())
6 }
7}
8impl core::fmt::Debug for crate::generic::Reg<SPINLOCK_ST_SPEC> {
9 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
10 core::fmt::Debug::fmt(&self.read(), f)
11 }
12}
13#[doc = "Spinlock state
14 A bitmap containing the state of all 32 spinlocks (1=locked).
15 Mainly intended for debugging.
16
17You can [`read`](crate::generic::Reg::read) this register and get [`spinlock_st::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
18pub struct SPINLOCK_ST_SPEC;
19impl crate::RegisterSpec for SPINLOCK_ST_SPEC {
20 type Ux = u32;
21}
22#[doc = "`read()` method returns [`spinlock_st::R`](R) reader structure"]
23impl crate::Readable for SPINLOCK_ST_SPEC {}
24#[doc = "`reset()` method sets SPINLOCK_ST to value 0"]
25impl crate::Resettable for SPINLOCK_ST_SPEC {
26 const RESET_VALUE: u32 = 0;
27}