pub type R = crate::R<GPWRDNrs>;
pub type W = crate::W<GPWRDNrs>;
pub type ADPMEN_R = crate::BitReader;
pub type ADPMEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ADPIF_R = crate::BitReader;
pub type ADPIF_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn adpmen(&self) -> ADPMEN_R {
ADPMEN_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn adpif(&self) -> ADPIF_R {
ADPIF_R::new(((self.bits >> 23) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("GPWRDN")
.field("adpmen", &self.adpmen())
.field("adpif", &self.adpif())
.finish()
}
}
impl W {
#[inline(always)]
pub fn adpmen(&mut self) -> ADPMEN_W<GPWRDNrs> {
ADPMEN_W::new(self, 0)
}
#[inline(always)]
pub fn adpif(&mut self) -> ADPIF_W<GPWRDNrs> {
ADPIF_W::new(self, 23)
}
}
pub struct GPWRDNrs;
impl crate::RegisterSpec for GPWRDNrs {
type Ux = u32;
}
impl crate::Readable for GPWRDNrs {}
impl crate::Writable for GPWRDNrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for GPWRDNrs {
const RESET_VALUE: u32 = 0x0200_0400;
}