pub type R = crate::R<GCCFGrs>;
pub type W = crate::W<GCCFGrs>;
pub type PDET_R = crate::BitReader;
pub type SDET_R = crate::BitReader;
pub type PS2DET_R = crate::BitReader;
pub type PWRDWN_R = crate::BitReader;
pub type PWRDWN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type BCDEN_R = crate::BitReader;
pub type BCDEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PDEN_R = crate::BitReader;
pub type PDEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SDEN_R = crate::BitReader;
pub type SDEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type VBDEN_R = crate::BitReader;
pub type VBDEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type IDEN_R = crate::BitReader;
pub type IDEN_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn pdet(&self) -> PDET_R {
PDET_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn sdet(&self) -> SDET_R {
SDET_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn ps2det(&self) -> PS2DET_R {
PS2DET_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn pwrdwn(&self) -> PWRDWN_R {
PWRDWN_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn bcden(&self) -> BCDEN_R {
BCDEN_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn pden(&self) -> PDEN_R {
PDEN_R::new(((self.bits >> 19) & 1) != 0)
}
#[inline(always)]
pub fn sden(&self) -> SDEN_R {
SDEN_R::new(((self.bits >> 20) & 1) != 0)
}
#[inline(always)]
pub fn vbden(&self) -> VBDEN_R {
VBDEN_R::new(((self.bits >> 21) & 1) != 0)
}
#[inline(always)]
pub fn iden(&self) -> IDEN_R {
IDEN_R::new(((self.bits >> 22) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("GCCFG")
.field("pdet", &self.pdet())
.field("sdet", &self.sdet())
.field("ps2det", &self.ps2det())
.field("pwrdwn", &self.pwrdwn())
.field("bcden", &self.bcden())
.field("pden", &self.pden())
.field("sden", &self.sden())
.field("vbden", &self.vbden())
.field("iden", &self.iden())
.finish()
}
}
impl W {
#[inline(always)]
pub fn pwrdwn(&mut self) -> PWRDWN_W<GCCFGrs> {
PWRDWN_W::new(self, 16)
}
#[inline(always)]
pub fn bcden(&mut self) -> BCDEN_W<GCCFGrs> {
BCDEN_W::new(self, 17)
}
#[inline(always)]
pub fn pden(&mut self) -> PDEN_W<GCCFGrs> {
PDEN_W::new(self, 19)
}
#[inline(always)]
pub fn sden(&mut self) -> SDEN_W<GCCFGrs> {
SDEN_W::new(self, 20)
}
#[inline(always)]
pub fn vbden(&mut self) -> VBDEN_W<GCCFGrs> {
VBDEN_W::new(self, 21)
}
#[inline(always)]
pub fn iden(&mut self) -> IDEN_W<GCCFGrs> {
IDEN_W::new(self, 22)
}
}
pub struct GCCFGrs;
impl crate::RegisterSpec for GCCFGrs {
type Ux = u32;
}
impl crate::Readable for GCCFGrs {}
impl crate::Writable for GCCFGrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for GCCFGrs {}