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