#[doc = "Register `DIG_ISO` reader"]
pub struct R(crate::R<DIG_ISO_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<DIG_ISO_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<DIG_ISO_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<DIG_ISO_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Register `DIG_ISO` writer"]
pub struct W(crate::W<DIG_ISO_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<DIG_ISO_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl core::ops::DerefMut for W {
#[inline(always)]
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.0
}
}
impl From<crate::W<DIG_ISO_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<DIG_ISO_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Field `FORCE_OFF` reader - DIG_ISO force off"]
pub type FORCE_OFF_R = crate::BitReader<bool>;
#[doc = "Field `FORCE_OFF` writer - DIG_ISO force off"]
pub type FORCE_OFF_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIG_ISO_SPEC, bool, O>;
#[doc = "Field `FORCE_ON` reader - DIG_ISO force on"]
pub type FORCE_ON_R = crate::BitReader<bool>;
#[doc = "Field `FORCE_ON` writer - DIG_ISO force on"]
pub type FORCE_ON_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIG_ISO_SPEC, bool, O>;
#[doc = "Field `DG_PAD_AUTOHOLD` reader - read only register to indicate digital pad auto-hold status"]
pub type DG_PAD_AUTOHOLD_R = crate::BitReader<bool>;
#[doc = "Field `CLR_DG_PAD_AUTOHOLD` writer - wtite only register to clear digital pad auto-hold"]
pub type CLR_DG_PAD_AUTOHOLD_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIG_ISO_SPEC, bool, O>;
#[doc = "Field `DG_PAD_AUTOHOLD_EN` reader - digital pad enable auto-hold"]
pub type DG_PAD_AUTOHOLD_EN_R = crate::BitReader<bool>;
#[doc = "Field `DG_PAD_AUTOHOLD_EN` writer - digital pad enable auto-hold"]
pub type DG_PAD_AUTOHOLD_EN_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIG_ISO_SPEC, bool, O>;
#[doc = "Field `DG_PAD_FORCE_NOISO` reader - digital pad force no ISO"]
pub type DG_PAD_FORCE_NOISO_R = crate::BitReader<bool>;
#[doc = "Field `DG_PAD_FORCE_NOISO` writer - digital pad force no ISO"]
pub type DG_PAD_FORCE_NOISO_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIG_ISO_SPEC, bool, O>;
#[doc = "Field `DG_PAD_FORCE_ISO` reader - digital pad force ISO"]
pub type DG_PAD_FORCE_ISO_R = crate::BitReader<bool>;
#[doc = "Field `DG_PAD_FORCE_ISO` writer - digital pad force ISO"]
pub type DG_PAD_FORCE_ISO_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIG_ISO_SPEC, bool, O>;
#[doc = "Field `DG_PAD_FORCE_UNHOLD` reader - digital pad force un-hold"]
pub type DG_PAD_FORCE_UNHOLD_R = crate::BitReader<bool>;
#[doc = "Field `DG_PAD_FORCE_UNHOLD` writer - digital pad force un-hold"]
pub type DG_PAD_FORCE_UNHOLD_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIG_ISO_SPEC, bool, O>;
#[doc = "Field `DG_PAD_FORCE_HOLD` reader - digital pad force hold"]
pub type DG_PAD_FORCE_HOLD_R = crate::BitReader<bool>;
#[doc = "Field `DG_PAD_FORCE_HOLD` writer - digital pad force hold"]
pub type DG_PAD_FORCE_HOLD_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIG_ISO_SPEC, bool, O>;
#[doc = "Field `BT_FORCE_ISO` reader - bt force ISO"]
pub type BT_FORCE_ISO_R = crate::BitReader<bool>;
#[doc = "Field `BT_FORCE_ISO` writer - bt force ISO"]
pub type BT_FORCE_ISO_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIG_ISO_SPEC, bool, O>;
#[doc = "Field `BT_FORCE_NOISO` reader - bt force no ISO"]
pub type BT_FORCE_NOISO_R = crate::BitReader<bool>;
#[doc = "Field `BT_FORCE_NOISO` writer - bt force no ISO"]
pub type BT_FORCE_NOISO_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIG_ISO_SPEC, bool, O>;
#[doc = "Field `DG_PERI_FORCE_ISO` reader - Digital peri force ISO"]
pub type DG_PERI_FORCE_ISO_R = crate::BitReader<bool>;
#[doc = "Field `DG_PERI_FORCE_ISO` writer - Digital peri force ISO"]
pub type DG_PERI_FORCE_ISO_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIG_ISO_SPEC, bool, O>;
#[doc = "Field `DG_PERI_FORCE_NOISO` reader - digital peri force no ISO"]
pub type DG_PERI_FORCE_NOISO_R = crate::BitReader<bool>;
#[doc = "Field `DG_PERI_FORCE_NOISO` writer - digital peri force no ISO"]
pub type DG_PERI_FORCE_NOISO_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIG_ISO_SPEC, bool, O>;
#[doc = "Field `CPU_TOP_FORCE_ISO` reader - cpu force ISO"]
pub type CPU_TOP_FORCE_ISO_R = crate::BitReader<bool>;
#[doc = "Field `CPU_TOP_FORCE_ISO` writer - cpu force ISO"]
pub type CPU_TOP_FORCE_ISO_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIG_ISO_SPEC, bool, O>;
#[doc = "Field `CPU_TOP_FORCE_NOISO` reader - cpu force no ISO"]
pub type CPU_TOP_FORCE_NOISO_R = crate::BitReader<bool>;
#[doc = "Field `CPU_TOP_FORCE_NOISO` writer - cpu force no ISO"]
pub type CPU_TOP_FORCE_NOISO_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIG_ISO_SPEC, bool, O>;
#[doc = "Field `WIFI_FORCE_ISO` reader - wifi force ISO"]
pub type WIFI_FORCE_ISO_R = crate::BitReader<bool>;
#[doc = "Field `WIFI_FORCE_ISO` writer - wifi force ISO"]
pub type WIFI_FORCE_ISO_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIG_ISO_SPEC, bool, O>;
#[doc = "Field `WIFI_FORCE_NOISO` reader - wifi force no ISO"]
pub type WIFI_FORCE_NOISO_R = crate::BitReader<bool>;
#[doc = "Field `WIFI_FORCE_NOISO` writer - wifi force no ISO"]
pub type WIFI_FORCE_NOISO_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIG_ISO_SPEC, bool, O>;
#[doc = "Field `DG_WRAP_FORCE_ISO` reader - digital core force ISO"]
pub type DG_WRAP_FORCE_ISO_R = crate::BitReader<bool>;
#[doc = "Field `DG_WRAP_FORCE_ISO` writer - digital core force ISO"]
pub type DG_WRAP_FORCE_ISO_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIG_ISO_SPEC, bool, O>;
#[doc = "Field `DG_WRAP_FORCE_NOISO` reader - digital core force no ISO"]
pub type DG_WRAP_FORCE_NOISO_R = crate::BitReader<bool>;
#[doc = "Field `DG_WRAP_FORCE_NOISO` writer - digital core force no ISO"]
pub type DG_WRAP_FORCE_NOISO_W<'a, const O: u8> = crate::BitWriter<'a, u32, DIG_ISO_SPEC, bool, O>;
impl R {
#[doc = "Bit 7 - DIG_ISO force off"]
#[inline(always)]
pub fn force_off(&self) -> FORCE_OFF_R {
FORCE_OFF_R::new(((self.bits >> 7) & 1) != 0)
}
#[doc = "Bit 8 - DIG_ISO force on"]
#[inline(always)]
pub fn force_on(&self) -> FORCE_ON_R {
FORCE_ON_R::new(((self.bits >> 8) & 1) != 0)
}
#[doc = "Bit 9 - read only register to indicate digital pad auto-hold status"]
#[inline(always)]
pub fn dg_pad_autohold(&self) -> DG_PAD_AUTOHOLD_R {
DG_PAD_AUTOHOLD_R::new(((self.bits >> 9) & 1) != 0)
}
#[doc = "Bit 11 - digital pad enable auto-hold"]
#[inline(always)]
pub fn dg_pad_autohold_en(&self) -> DG_PAD_AUTOHOLD_EN_R {
DG_PAD_AUTOHOLD_EN_R::new(((self.bits >> 11) & 1) != 0)
}
#[doc = "Bit 12 - digital pad force no ISO"]
#[inline(always)]
pub fn dg_pad_force_noiso(&self) -> DG_PAD_FORCE_NOISO_R {
DG_PAD_FORCE_NOISO_R::new(((self.bits >> 12) & 1) != 0)
}
#[doc = "Bit 13 - digital pad force ISO"]
#[inline(always)]
pub fn dg_pad_force_iso(&self) -> DG_PAD_FORCE_ISO_R {
DG_PAD_FORCE_ISO_R::new(((self.bits >> 13) & 1) != 0)
}
#[doc = "Bit 14 - digital pad force un-hold"]
#[inline(always)]
pub fn dg_pad_force_unhold(&self) -> DG_PAD_FORCE_UNHOLD_R {
DG_PAD_FORCE_UNHOLD_R::new(((self.bits >> 14) & 1) != 0)
}
#[doc = "Bit 15 - digital pad force hold"]
#[inline(always)]
pub fn dg_pad_force_hold(&self) -> DG_PAD_FORCE_HOLD_R {
DG_PAD_FORCE_HOLD_R::new(((self.bits >> 15) & 1) != 0)
}
#[doc = "Bit 22 - bt force ISO"]
#[inline(always)]
pub fn bt_force_iso(&self) -> BT_FORCE_ISO_R {
BT_FORCE_ISO_R::new(((self.bits >> 22) & 1) != 0)
}
#[doc = "Bit 23 - bt force no ISO"]
#[inline(always)]
pub fn bt_force_noiso(&self) -> BT_FORCE_NOISO_R {
BT_FORCE_NOISO_R::new(((self.bits >> 23) & 1) != 0)
}
#[doc = "Bit 24 - Digital peri force ISO"]
#[inline(always)]
pub fn dg_peri_force_iso(&self) -> DG_PERI_FORCE_ISO_R {
DG_PERI_FORCE_ISO_R::new(((self.bits >> 24) & 1) != 0)
}
#[doc = "Bit 25 - digital peri force no ISO"]
#[inline(always)]
pub fn dg_peri_force_noiso(&self) -> DG_PERI_FORCE_NOISO_R {
DG_PERI_FORCE_NOISO_R::new(((self.bits >> 25) & 1) != 0)
}
#[doc = "Bit 26 - cpu force ISO"]
#[inline(always)]
pub fn cpu_top_force_iso(&self) -> CPU_TOP_FORCE_ISO_R {
CPU_TOP_FORCE_ISO_R::new(((self.bits >> 26) & 1) != 0)
}
#[doc = "Bit 27 - cpu force no ISO"]
#[inline(always)]
pub fn cpu_top_force_noiso(&self) -> CPU_TOP_FORCE_NOISO_R {
CPU_TOP_FORCE_NOISO_R::new(((self.bits >> 27) & 1) != 0)
}
#[doc = "Bit 28 - wifi force ISO"]
#[inline(always)]
pub fn wifi_force_iso(&self) -> WIFI_FORCE_ISO_R {
WIFI_FORCE_ISO_R::new(((self.bits >> 28) & 1) != 0)
}
#[doc = "Bit 29 - wifi force no ISO"]
#[inline(always)]
pub fn wifi_force_noiso(&self) -> WIFI_FORCE_NOISO_R {
WIFI_FORCE_NOISO_R::new(((self.bits >> 29) & 1) != 0)
}
#[doc = "Bit 30 - digital core force ISO"]
#[inline(always)]
pub fn dg_wrap_force_iso(&self) -> DG_WRAP_FORCE_ISO_R {
DG_WRAP_FORCE_ISO_R::new(((self.bits >> 30) & 1) != 0)
}
#[doc = "Bit 31 - digital core force no ISO"]
#[inline(always)]
pub fn dg_wrap_force_noiso(&self) -> DG_WRAP_FORCE_NOISO_R {
DG_WRAP_FORCE_NOISO_R::new(((self.bits >> 31) & 1) != 0)
}
}
impl W {
#[doc = "Bit 7 - DIG_ISO force off"]
#[inline(always)]
#[must_use]
pub fn force_off(&mut self) -> FORCE_OFF_W<7> {
FORCE_OFF_W::new(self)
}
#[doc = "Bit 8 - DIG_ISO force on"]
#[inline(always)]
#[must_use]
pub fn force_on(&mut self) -> FORCE_ON_W<8> {
FORCE_ON_W::new(self)
}
#[doc = "Bit 10 - wtite only register to clear digital pad auto-hold"]
#[inline(always)]
#[must_use]
pub fn clr_dg_pad_autohold(&mut self) -> CLR_DG_PAD_AUTOHOLD_W<10> {
CLR_DG_PAD_AUTOHOLD_W::new(self)
}
#[doc = "Bit 11 - digital pad enable auto-hold"]
#[inline(always)]
#[must_use]
pub fn dg_pad_autohold_en(&mut self) -> DG_PAD_AUTOHOLD_EN_W<11> {
DG_PAD_AUTOHOLD_EN_W::new(self)
}
#[doc = "Bit 12 - digital pad force no ISO"]
#[inline(always)]
#[must_use]
pub fn dg_pad_force_noiso(&mut self) -> DG_PAD_FORCE_NOISO_W<12> {
DG_PAD_FORCE_NOISO_W::new(self)
}
#[doc = "Bit 13 - digital pad force ISO"]
#[inline(always)]
#[must_use]
pub fn dg_pad_force_iso(&mut self) -> DG_PAD_FORCE_ISO_W<13> {
DG_PAD_FORCE_ISO_W::new(self)
}
#[doc = "Bit 14 - digital pad force un-hold"]
#[inline(always)]
#[must_use]
pub fn dg_pad_force_unhold(&mut self) -> DG_PAD_FORCE_UNHOLD_W<14> {
DG_PAD_FORCE_UNHOLD_W::new(self)
}
#[doc = "Bit 15 - digital pad force hold"]
#[inline(always)]
#[must_use]
pub fn dg_pad_force_hold(&mut self) -> DG_PAD_FORCE_HOLD_W<15> {
DG_PAD_FORCE_HOLD_W::new(self)
}
#[doc = "Bit 22 - bt force ISO"]
#[inline(always)]
#[must_use]
pub fn bt_force_iso(&mut self) -> BT_FORCE_ISO_W<22> {
BT_FORCE_ISO_W::new(self)
}
#[doc = "Bit 23 - bt force no ISO"]
#[inline(always)]
#[must_use]
pub fn bt_force_noiso(&mut self) -> BT_FORCE_NOISO_W<23> {
BT_FORCE_NOISO_W::new(self)
}
#[doc = "Bit 24 - Digital peri force ISO"]
#[inline(always)]
#[must_use]
pub fn dg_peri_force_iso(&mut self) -> DG_PERI_FORCE_ISO_W<24> {
DG_PERI_FORCE_ISO_W::new(self)
}
#[doc = "Bit 25 - digital peri force no ISO"]
#[inline(always)]
#[must_use]
pub fn dg_peri_force_noiso(&mut self) -> DG_PERI_FORCE_NOISO_W<25> {
DG_PERI_FORCE_NOISO_W::new(self)
}
#[doc = "Bit 26 - cpu force ISO"]
#[inline(always)]
#[must_use]
pub fn cpu_top_force_iso(&mut self) -> CPU_TOP_FORCE_ISO_W<26> {
CPU_TOP_FORCE_ISO_W::new(self)
}
#[doc = "Bit 27 - cpu force no ISO"]
#[inline(always)]
#[must_use]
pub fn cpu_top_force_noiso(&mut self) -> CPU_TOP_FORCE_NOISO_W<27> {
CPU_TOP_FORCE_NOISO_W::new(self)
}
#[doc = "Bit 28 - wifi force ISO"]
#[inline(always)]
#[must_use]
pub fn wifi_force_iso(&mut self) -> WIFI_FORCE_ISO_W<28> {
WIFI_FORCE_ISO_W::new(self)
}
#[doc = "Bit 29 - wifi force no ISO"]
#[inline(always)]
#[must_use]
pub fn wifi_force_noiso(&mut self) -> WIFI_FORCE_NOISO_W<29> {
WIFI_FORCE_NOISO_W::new(self)
}
#[doc = "Bit 30 - digital core force ISO"]
#[inline(always)]
#[must_use]
pub fn dg_wrap_force_iso(&mut self) -> DG_WRAP_FORCE_ISO_W<30> {
DG_WRAP_FORCE_ISO_W::new(self)
}
#[doc = "Bit 31 - digital core force no ISO"]
#[inline(always)]
#[must_use]
pub fn dg_wrap_force_noiso(&mut self) -> DG_WRAP_FORCE_NOISO_W<31> {
DG_WRAP_FORCE_NOISO_W::new(self)
}
#[doc = "Writes raw bits to the register."]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.0.bits(bits);
self
}
}
#[doc = "rtc configure register\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [dig_iso](index.html) module"]
pub struct DIG_ISO_SPEC;
impl crate::RegisterSpec for DIG_ISO_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [dig_iso::R](R) reader structure"]
impl crate::Readable for DIG_ISO_SPEC {
type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [dig_iso::W](W) writer structure"]
impl crate::Writable for DIG_ISO_SPEC {
type Writer = W;
const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
}
#[doc = "`reset()` method sets DIG_ISO to value 0xaa80_5080"]
impl crate::Resettable for DIG_ISO_SPEC {
const RESET_VALUE: Self::Ux = 0xaa80_5080;
}