pub type R = crate::R<PINLOCKNrs>;
pub type W = crate::W<PINLOCKNrs>;
pub type PinsPinlocknR = crate::FieldReader<u16>;
pub type PinsPinlocknW<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
impl R {
#[inline(always)]
pub fn pins_pinlockn(&self) -> PinsPinlocknR {
PinsPinlocknR::new((self.bits & 0xffff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("PINLOCKN")
.field("pins_pinlockn", &self.pins_pinlockn())
.finish()
}
}
impl W {
#[inline(always)]
pub fn pins_pinlockn(&mut self) -> PinsPinlocknW<'_, PINLOCKNrs> {
PinsPinlocknW::new(self, 0)
}
}
pub struct PINLOCKNrs;
impl crate::RegisterSpec for PINLOCKNrs {
type Ux = u32;
}
impl crate::Readable for PINLOCKNrs {}
impl crate::Writable for PINLOCKNrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for PINLOCKNrs {
const RESET_VALUE: u32 = 0xffff;
}