pub type R = crate::R<LOCKRGrs>;
pub type W = crate::W<LOCKRGrs>;
pub type LOCK_R = crate::BitReader;
pub type LOCK_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn lock(&self) -> LOCK_R {
LOCK_R::new((self.bits & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("LOCKRG")
.field("lock", &self.lock())
.finish()
}
}
impl W {
#[inline(always)]
pub fn lock(&mut self) -> LOCK_W<LOCKRGrs> {
LOCK_W::new(self, 0)
}
}
pub struct LOCKRGrs;
impl crate::RegisterSpec for LOCKRGrs {
type Ux = u32;
}
impl crate::Readable for LOCKRGrs {}
impl crate::Writable for LOCKRGrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for LOCKRGrs {}