d1_pac/spinlock/
spinlock_lockid.rs1#[doc = "Register `spinlock_lockid%s` reader"]
2pub type R = crate::R<SPINLOCK_LOCKID_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_LOCKID_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 Lockid Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`spinlock_lockid::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
14pub struct SPINLOCK_LOCKID_SPEC;
15impl crate::RegisterSpec for SPINLOCK_LOCKID_SPEC {
16 type Ux = u32;
17}
18#[doc = "`read()` method returns [`spinlock_lockid::R`](R) reader structure"]
19impl crate::Readable for SPINLOCK_LOCKID_SPEC {}
20#[doc = "`reset()` method sets spinlock_lockid%s to value 0"]
21impl crate::Resettable for SPINLOCK_LOCKID_SPEC {
22 const RESET_VALUE: Self::Ux = 0;
23}