pub type R = crate::R<APCRrs>;
pub type W = crate::W<APCRrs>;
pub type APC_R = crate::BitReader;
pub type APC_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PN7_PUPD_R = crate::BitReader;
pub type PN7_PUPD_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PO5_PUPD_R = crate::BitReader;
pub type PO5_PUPD_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type I3CPB6_PU_R = crate::BitReader;
pub type I3CPB6_PU_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type I3CPB7_PU_R = crate::BitReader;
pub type I3CPB7_PU_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type I3CPB8_PU_R = crate::BitReader;
pub type I3CPB8_PU_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type I3CPB9_PU_R = crate::BitReader;
pub type I3CPB9_PU_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn apc(&self) -> APC_R {
APC_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn pn7_pupd(&self) -> PN7_PUPD_R {
PN7_PUPD_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn po5_pupd(&self) -> PO5_PUPD_R {
PO5_PUPD_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn i3cpb6_pu(&self) -> I3CPB6_PU_R {
I3CPB6_PU_R::new(((self.bits >> 28) & 1) != 0)
}
#[inline(always)]
pub fn i3cpb7_pu(&self) -> I3CPB7_PU_R {
I3CPB7_PU_R::new(((self.bits >> 29) & 1) != 0)
}
#[inline(always)]
pub fn i3cpb8_pu(&self) -> I3CPB8_PU_R {
I3CPB8_PU_R::new(((self.bits >> 30) & 1) != 0)
}
#[inline(always)]
pub fn i3cpb9_pu(&self) -> I3CPB9_PU_R {
I3CPB9_PU_R::new(((self.bits >> 31) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("APCR")
.field("apc", &self.apc())
.field("pn7_pupd", &self.pn7_pupd())
.field("po5_pupd", &self.po5_pupd())
.field("i3cpb6_pu", &self.i3cpb6_pu())
.field("i3cpb7_pu", &self.i3cpb7_pu())
.field("i3cpb8_pu", &self.i3cpb8_pu())
.field("i3cpb9_pu", &self.i3cpb9_pu())
.finish()
}
}
impl W {
#[inline(always)]
pub fn apc(&mut self) -> APC_W<APCRrs> {
APC_W::new(self, 0)
}
#[inline(always)]
pub fn pn7_pupd(&mut self) -> PN7_PUPD_W<APCRrs> {
PN7_PUPD_W::new(self, 16)
}
#[inline(always)]
pub fn po5_pupd(&mut self) -> PO5_PUPD_W<APCRrs> {
PO5_PUPD_W::new(self, 17)
}
#[inline(always)]
pub fn i3cpb6_pu(&mut self) -> I3CPB6_PU_W<APCRrs> {
I3CPB6_PU_W::new(self, 28)
}
#[inline(always)]
pub fn i3cpb7_pu(&mut self) -> I3CPB7_PU_W<APCRrs> {
I3CPB7_PU_W::new(self, 29)
}
#[inline(always)]
pub fn i3cpb8_pu(&mut self) -> I3CPB8_PU_W<APCRrs> {
I3CPB8_PU_W::new(self, 30)
}
#[inline(always)]
pub fn i3cpb9_pu(&mut self) -> I3CPB9_PU_W<APCRrs> {
I3CPB9_PU_W::new(self, 31)
}
}
pub struct APCRrs;
impl crate::RegisterSpec for APCRrs {
type Ux = u32;
}
impl crate::Readable for APCRrs {}
impl crate::Writable for APCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for APCRrs {
const RESET_VALUE: u32 = 0x0003_0000;
}