efm32pg1b-pac 0.4.3

Peripheral access API for Silicon Labs EFM32PG1B microcontrollers
Documentation
///Register `PINLOCKN` reader
pub type R = crate::R<PINLOCKNrs>;
///Register `PINLOCKN` writer
pub type W = crate::W<PINLOCKNrs>;
///Field `PINS_PINLOCKN` reader - Unlocked Pins for pins 0:15
pub type PinsPinlocknR = crate::FieldReader<u16>;
///Field `PINS_PINLOCKN` writer - Unlocked Pins for pins 0:15
pub type PinsPinlocknW<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
impl R {
    ///Bits 0:15 - Unlocked Pins for pins 0:15
    #[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 {
    ///Bits 0:15 - Unlocked Pins for pins 0:15
    #[inline(always)]
    pub fn pins_pinlockn(&mut self) -> PinsPinlocknW<'_, PINLOCKNrs> {
        PinsPinlocknW::new(self, 0)
    }
}
///Port Unlocked Pins Register. Shows unlocked pins in the port. To lock pin n, clear bit n. The pin is then locked until reset.
///
///You can [`read`](crate::Reg::read) this register and get [`pinlockn::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pinlockn::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
pub struct PINLOCKNrs;
impl crate::RegisterSpec for PINLOCKNrs {
    type Ux = u32;
}
///`read()` method returns [`pinlockn::R`](R) reader structure
impl crate::Readable for PINLOCKNrs {}
///`write(|w| ..)` method takes [`pinlockn::W`](W) writer structure
impl crate::Writable for PINLOCKNrs {
    type Safety = crate::Unsafe;
}
///`reset()` method sets PINLOCKN to value 0xffff
impl crate::Resettable for PINLOCKNrs {
    const RESET_VALUE: u32 = 0xffff;
}