#[doc = "Register `PDAWAKECFG` reader"]
pub struct R(crate::R<PDAWAKECFG_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<PDAWAKECFG_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<PDAWAKECFG_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<PDAWAKECFG_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Register `PDAWAKECFG` writer"]
pub struct W(crate::W<PDAWAKECFG_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<PDAWAKECFG_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<PDAWAKECFG_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<PDAWAKECFG_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Field `IRCOUT_PD` reader - IRC oscillator output wake-up configuration"]
pub type IRCOUT_PD_R = crate::BitReader<IRCOUT_PD_A>;
#[doc = "IRC oscillator output wake-up configuration\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum IRCOUT_PD_A {
#[doc = "0: Powered"]
POWERED = 0,
#[doc = "1: Powered down"]
POWERED_DOWN = 1,
}
impl From<IRCOUT_PD_A> for bool {
#[inline(always)]
fn from(variant: IRCOUT_PD_A) -> Self {
variant as u8 != 0
}
}
impl IRCOUT_PD_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> IRCOUT_PD_A {
match self.bits {
false => IRCOUT_PD_A::POWERED,
true => IRCOUT_PD_A::POWERED_DOWN,
}
}
#[doc = "Checks if the value of the field is `POWERED`"]
#[inline(always)]
pub fn is_powered(&self) -> bool {
*self == IRCOUT_PD_A::POWERED
}
#[doc = "Checks if the value of the field is `POWERED_DOWN`"]
#[inline(always)]
pub fn is_powered_down(&self) -> bool {
*self == IRCOUT_PD_A::POWERED_DOWN
}
}
#[doc = "Field `IRCOUT_PD` writer - IRC oscillator output wake-up configuration"]
pub type IRCOUT_PD_W<'a, const O: u8> = crate::BitWriter<'a, u32, PDAWAKECFG_SPEC, IRCOUT_PD_A, O>;
impl<'a, const O: u8> IRCOUT_PD_W<'a, O> {
#[doc = "Powered"]
#[inline(always)]
pub fn powered(self) -> &'a mut W {
self.variant(IRCOUT_PD_A::POWERED)
}
#[doc = "Powered down"]
#[inline(always)]
pub fn powered_down(self) -> &'a mut W {
self.variant(IRCOUT_PD_A::POWERED_DOWN)
}
}
#[doc = "Field `IRC_PD` reader - IRC oscillator power-down wake-up configuration"]
pub type IRC_PD_R = crate::BitReader<IRC_PD_A>;
#[doc = "IRC oscillator power-down wake-up configuration\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum IRC_PD_A {
#[doc = "0: Powered"]
POWERED = 0,
#[doc = "1: Powered down"]
POWERED_DOWN = 1,
}
impl From<IRC_PD_A> for bool {
#[inline(always)]
fn from(variant: IRC_PD_A) -> Self {
variant as u8 != 0
}
}
impl IRC_PD_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> IRC_PD_A {
match self.bits {
false => IRC_PD_A::POWERED,
true => IRC_PD_A::POWERED_DOWN,
}
}
#[doc = "Checks if the value of the field is `POWERED`"]
#[inline(always)]
pub fn is_powered(&self) -> bool {
*self == IRC_PD_A::POWERED
}
#[doc = "Checks if the value of the field is `POWERED_DOWN`"]
#[inline(always)]
pub fn is_powered_down(&self) -> bool {
*self == IRC_PD_A::POWERED_DOWN
}
}
#[doc = "Field `IRC_PD` writer - IRC oscillator power-down wake-up configuration"]
pub type IRC_PD_W<'a, const O: u8> = crate::BitWriter<'a, u32, PDAWAKECFG_SPEC, IRC_PD_A, O>;
impl<'a, const O: u8> IRC_PD_W<'a, O> {
#[doc = "Powered"]
#[inline(always)]
pub fn powered(self) -> &'a mut W {
self.variant(IRC_PD_A::POWERED)
}
#[doc = "Powered down"]
#[inline(always)]
pub fn powered_down(self) -> &'a mut W {
self.variant(IRC_PD_A::POWERED_DOWN)
}
}
#[doc = "Field `FLASH_PD` reader - Flash wake-up configuration"]
pub type FLASH_PD_R = crate::BitReader<FLASH_PD_A>;
#[doc = "Flash wake-up configuration\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum FLASH_PD_A {
#[doc = "0: Powered"]
POWERED = 0,
#[doc = "1: Powered down"]
POWERED_DOWN = 1,
}
impl From<FLASH_PD_A> for bool {
#[inline(always)]
fn from(variant: FLASH_PD_A) -> Self {
variant as u8 != 0
}
}
impl FLASH_PD_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> FLASH_PD_A {
match self.bits {
false => FLASH_PD_A::POWERED,
true => FLASH_PD_A::POWERED_DOWN,
}
}
#[doc = "Checks if the value of the field is `POWERED`"]
#[inline(always)]
pub fn is_powered(&self) -> bool {
*self == FLASH_PD_A::POWERED
}
#[doc = "Checks if the value of the field is `POWERED_DOWN`"]
#[inline(always)]
pub fn is_powered_down(&self) -> bool {
*self == FLASH_PD_A::POWERED_DOWN
}
}
#[doc = "Field `FLASH_PD` writer - Flash wake-up configuration"]
pub type FLASH_PD_W<'a, const O: u8> = crate::BitWriter<'a, u32, PDAWAKECFG_SPEC, FLASH_PD_A, O>;
impl<'a, const O: u8> FLASH_PD_W<'a, O> {
#[doc = "Powered"]
#[inline(always)]
pub fn powered(self) -> &'a mut W {
self.variant(FLASH_PD_A::POWERED)
}
#[doc = "Powered down"]
#[inline(always)]
pub fn powered_down(self) -> &'a mut W {
self.variant(FLASH_PD_A::POWERED_DOWN)
}
}
#[doc = "Field `BOD_PD` reader - BOD wake-up configuration"]
pub type BOD_PD_R = crate::BitReader<BOD_PD_A>;
#[doc = "BOD wake-up configuration\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum BOD_PD_A {
#[doc = "0: Powered"]
POWERED = 0,
#[doc = "1: Powered down"]
POWERED_DOWN = 1,
}
impl From<BOD_PD_A> for bool {
#[inline(always)]
fn from(variant: BOD_PD_A) -> Self {
variant as u8 != 0
}
}
impl BOD_PD_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> BOD_PD_A {
match self.bits {
false => BOD_PD_A::POWERED,
true => BOD_PD_A::POWERED_DOWN,
}
}
#[doc = "Checks if the value of the field is `POWERED`"]
#[inline(always)]
pub fn is_powered(&self) -> bool {
*self == BOD_PD_A::POWERED
}
#[doc = "Checks if the value of the field is `POWERED_DOWN`"]
#[inline(always)]
pub fn is_powered_down(&self) -> bool {
*self == BOD_PD_A::POWERED_DOWN
}
}
#[doc = "Field `BOD_PD` writer - BOD wake-up configuration"]
pub type BOD_PD_W<'a, const O: u8> = crate::BitWriter<'a, u32, PDAWAKECFG_SPEC, BOD_PD_A, O>;
impl<'a, const O: u8> BOD_PD_W<'a, O> {
#[doc = "Powered"]
#[inline(always)]
pub fn powered(self) -> &'a mut W {
self.variant(BOD_PD_A::POWERED)
}
#[doc = "Powered down"]
#[inline(always)]
pub fn powered_down(self) -> &'a mut W {
self.variant(BOD_PD_A::POWERED_DOWN)
}
}
#[doc = "Field `ADC_PD` reader - ADC wake-up configuration"]
pub type ADC_PD_R = crate::BitReader<ADC_PD_A>;
#[doc = "ADC wake-up configuration\n\nValue on reset: 1"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ADC_PD_A {
#[doc = "0: Powered"]
POWERED = 0,
#[doc = "1: Powered down"]
POWERED_DOWN = 1,
}
impl From<ADC_PD_A> for bool {
#[inline(always)]
fn from(variant: ADC_PD_A) -> Self {
variant as u8 != 0
}
}
impl ADC_PD_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> ADC_PD_A {
match self.bits {
false => ADC_PD_A::POWERED,
true => ADC_PD_A::POWERED_DOWN,
}
}
#[doc = "Checks if the value of the field is `POWERED`"]
#[inline(always)]
pub fn is_powered(&self) -> bool {
*self == ADC_PD_A::POWERED
}
#[doc = "Checks if the value of the field is `POWERED_DOWN`"]
#[inline(always)]
pub fn is_powered_down(&self) -> bool {
*self == ADC_PD_A::POWERED_DOWN
}
}
#[doc = "Field `ADC_PD` writer - ADC wake-up configuration"]
pub type ADC_PD_W<'a, const O: u8> = crate::BitWriter<'a, u32, PDAWAKECFG_SPEC, ADC_PD_A, O>;
impl<'a, const O: u8> ADC_PD_W<'a, O> {
#[doc = "Powered"]
#[inline(always)]
pub fn powered(self) -> &'a mut W {
self.variant(ADC_PD_A::POWERED)
}
#[doc = "Powered down"]
#[inline(always)]
pub fn powered_down(self) -> &'a mut W {
self.variant(ADC_PD_A::POWERED_DOWN)
}
}
#[doc = "Field `SYSOSC_PD` reader - System oscillator wake-up configuration"]
pub type SYSOSC_PD_R = crate::BitReader<SYSOSC_PD_A>;
#[doc = "System oscillator wake-up configuration\n\nValue on reset: 1"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum SYSOSC_PD_A {
#[doc = "0: Powered"]
POWERED = 0,
#[doc = "1: Powered down"]
POWERED_DOWN = 1,
}
impl From<SYSOSC_PD_A> for bool {
#[inline(always)]
fn from(variant: SYSOSC_PD_A) -> Self {
variant as u8 != 0
}
}
impl SYSOSC_PD_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> SYSOSC_PD_A {
match self.bits {
false => SYSOSC_PD_A::POWERED,
true => SYSOSC_PD_A::POWERED_DOWN,
}
}
#[doc = "Checks if the value of the field is `POWERED`"]
#[inline(always)]
pub fn is_powered(&self) -> bool {
*self == SYSOSC_PD_A::POWERED
}
#[doc = "Checks if the value of the field is `POWERED_DOWN`"]
#[inline(always)]
pub fn is_powered_down(&self) -> bool {
*self == SYSOSC_PD_A::POWERED_DOWN
}
}
#[doc = "Field `SYSOSC_PD` writer - System oscillator wake-up configuration"]
pub type SYSOSC_PD_W<'a, const O: u8> = crate::BitWriter<'a, u32, PDAWAKECFG_SPEC, SYSOSC_PD_A, O>;
impl<'a, const O: u8> SYSOSC_PD_W<'a, O> {
#[doc = "Powered"]
#[inline(always)]
pub fn powered(self) -> &'a mut W {
self.variant(SYSOSC_PD_A::POWERED)
}
#[doc = "Powered down"]
#[inline(always)]
pub fn powered_down(self) -> &'a mut W {
self.variant(SYSOSC_PD_A::POWERED_DOWN)
}
}
#[doc = "Field `WDTOSC_PD` reader - Watchdog oscillator wake-up configuration"]
pub type WDTOSC_PD_R = crate::BitReader<WDTOSC_PD_A>;
#[doc = "Watchdog oscillator wake-up configuration\n\nValue on reset: 1"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum WDTOSC_PD_A {
#[doc = "0: Powered"]
POWERED = 0,
#[doc = "1: Powered down"]
POWERED_DOWN = 1,
}
impl From<WDTOSC_PD_A> for bool {
#[inline(always)]
fn from(variant: WDTOSC_PD_A) -> Self {
variant as u8 != 0
}
}
impl WDTOSC_PD_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> WDTOSC_PD_A {
match self.bits {
false => WDTOSC_PD_A::POWERED,
true => WDTOSC_PD_A::POWERED_DOWN,
}
}
#[doc = "Checks if the value of the field is `POWERED`"]
#[inline(always)]
pub fn is_powered(&self) -> bool {
*self == WDTOSC_PD_A::POWERED
}
#[doc = "Checks if the value of the field is `POWERED_DOWN`"]
#[inline(always)]
pub fn is_powered_down(&self) -> bool {
*self == WDTOSC_PD_A::POWERED_DOWN
}
}
#[doc = "Field `WDTOSC_PD` writer - Watchdog oscillator wake-up configuration"]
pub type WDTOSC_PD_W<'a, const O: u8> = crate::BitWriter<'a, u32, PDAWAKECFG_SPEC, WDTOSC_PD_A, O>;
impl<'a, const O: u8> WDTOSC_PD_W<'a, O> {
#[doc = "Powered"]
#[inline(always)]
pub fn powered(self) -> &'a mut W {
self.variant(WDTOSC_PD_A::POWERED)
}
#[doc = "Powered down"]
#[inline(always)]
pub fn powered_down(self) -> &'a mut W {
self.variant(WDTOSC_PD_A::POWERED_DOWN)
}
}
#[doc = "Field `SYSPLL_PD` reader - System PLL wake-up configuration"]
pub type SYSPLL_PD_R = crate::BitReader<SYSPLL_PD_A>;
#[doc = "System PLL wake-up configuration\n\nValue on reset: 1"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum SYSPLL_PD_A {
#[doc = "0: Powered"]
POWERED = 0,
#[doc = "1: Powered down"]
POWERED_DOWN = 1,
}
impl From<SYSPLL_PD_A> for bool {
#[inline(always)]
fn from(variant: SYSPLL_PD_A) -> Self {
variant as u8 != 0
}
}
impl SYSPLL_PD_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> SYSPLL_PD_A {
match self.bits {
false => SYSPLL_PD_A::POWERED,
true => SYSPLL_PD_A::POWERED_DOWN,
}
}
#[doc = "Checks if the value of the field is `POWERED`"]
#[inline(always)]
pub fn is_powered(&self) -> bool {
*self == SYSPLL_PD_A::POWERED
}
#[doc = "Checks if the value of the field is `POWERED_DOWN`"]
#[inline(always)]
pub fn is_powered_down(&self) -> bool {
*self == SYSPLL_PD_A::POWERED_DOWN
}
}
#[doc = "Field `SYSPLL_PD` writer - System PLL wake-up configuration"]
pub type SYSPLL_PD_W<'a, const O: u8> = crate::BitWriter<'a, u32, PDAWAKECFG_SPEC, SYSPLL_PD_A, O>;
impl<'a, const O: u8> SYSPLL_PD_W<'a, O> {
#[doc = "Powered"]
#[inline(always)]
pub fn powered(self) -> &'a mut W {
self.variant(SYSPLL_PD_A::POWERED)
}
#[doc = "Powered down"]
#[inline(always)]
pub fn powered_down(self) -> &'a mut W {
self.variant(SYSPLL_PD_A::POWERED_DOWN)
}
}
#[doc = "Field `USBPLL_PD` reader - USB PLL wake-up configuration"]
pub type USBPLL_PD_R = crate::BitReader<USBPLL_PD_A>;
#[doc = "USB PLL wake-up configuration\n\nValue on reset: 1"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum USBPLL_PD_A {
#[doc = "0: Powered"]
POWERED = 0,
#[doc = "1: Powered down"]
POWERED_DOWN = 1,
}
impl From<USBPLL_PD_A> for bool {
#[inline(always)]
fn from(variant: USBPLL_PD_A) -> Self {
variant as u8 != 0
}
}
impl USBPLL_PD_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> USBPLL_PD_A {
match self.bits {
false => USBPLL_PD_A::POWERED,
true => USBPLL_PD_A::POWERED_DOWN,
}
}
#[doc = "Checks if the value of the field is `POWERED`"]
#[inline(always)]
pub fn is_powered(&self) -> bool {
*self == USBPLL_PD_A::POWERED
}
#[doc = "Checks if the value of the field is `POWERED_DOWN`"]
#[inline(always)]
pub fn is_powered_down(&self) -> bool {
*self == USBPLL_PD_A::POWERED_DOWN
}
}
#[doc = "Field `USBPLL_PD` writer - USB PLL wake-up configuration"]
pub type USBPLL_PD_W<'a, const O: u8> = crate::BitWriter<'a, u32, PDAWAKECFG_SPEC, USBPLL_PD_A, O>;
impl<'a, const O: u8> USBPLL_PD_W<'a, O> {
#[doc = "Powered"]
#[inline(always)]
pub fn powered(self) -> &'a mut W {
self.variant(USBPLL_PD_A::POWERED)
}
#[doc = "Powered down"]
#[inline(always)]
pub fn powered_down(self) -> &'a mut W {
self.variant(USBPLL_PD_A::POWERED_DOWN)
}
}
#[doc = "Field `FIXEDVAL0` reader - Reserved. Always write this bit as 0."]
pub type FIXEDVAL0_R = crate::BitReader<bool>;
#[doc = "Field `FIXEDVAL0` writer - Reserved. Always write this bit as 0."]
pub type FIXEDVAL0_W<'a, const O: u8> = crate::BitWriter<'a, u32, PDAWAKECFG_SPEC, bool, O>;
#[doc = "Field `USBPAD_PD` reader - USB pad wake-up configuration"]
pub type USBPAD_PD_R = crate::BitReader<USBPAD_PD_A>;
#[doc = "USB pad wake-up configuration\n\nValue on reset: 1"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum USBPAD_PD_A {
#[doc = "0: USB PHY powered"]
USB_PHY_POWERED = 0,
#[doc = "1: USB PHY powered down"]
USB_PHY_POWERED_DOWN = 1,
}
impl From<USBPAD_PD_A> for bool {
#[inline(always)]
fn from(variant: USBPAD_PD_A) -> Self {
variant as u8 != 0
}
}
impl USBPAD_PD_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> USBPAD_PD_A {
match self.bits {
false => USBPAD_PD_A::USB_PHY_POWERED,
true => USBPAD_PD_A::USB_PHY_POWERED_DOWN,
}
}
#[doc = "Checks if the value of the field is `USB_PHY_POWERED`"]
#[inline(always)]
pub fn is_usb_phy_powered(&self) -> bool {
*self == USBPAD_PD_A::USB_PHY_POWERED
}
#[doc = "Checks if the value of the field is `USB_PHY_POWERED_DOWN`"]
#[inline(always)]
pub fn is_usb_phy_powered_down(&self) -> bool {
*self == USBPAD_PD_A::USB_PHY_POWERED_DOWN
}
}
#[doc = "Field `USBPAD_PD` writer - USB pad wake-up configuration"]
pub type USBPAD_PD_W<'a, const O: u8> = crate::BitWriter<'a, u32, PDAWAKECFG_SPEC, USBPAD_PD_A, O>;
impl<'a, const O: u8> USBPAD_PD_W<'a, O> {
#[doc = "USB PHY powered"]
#[inline(always)]
pub fn usb_phy_powered(self) -> &'a mut W {
self.variant(USBPAD_PD_A::USB_PHY_POWERED)
}
#[doc = "USB PHY powered down"]
#[inline(always)]
pub fn usb_phy_powered_down(self) -> &'a mut W {
self.variant(USBPAD_PD_A::USB_PHY_POWERED_DOWN)
}
}
#[doc = "Field `FIXEDVAL1` reader - Reserved. Always write this bit as 1."]
pub type FIXEDVAL1_R = crate::BitReader<bool>;
#[doc = "Field `FIXEDVAL1` writer - Reserved. Always write this bit as 1."]
pub type FIXEDVAL1_W<'a, const O: u8> = crate::BitWriter<'a, u32, PDAWAKECFG_SPEC, bool, O>;
impl R {
#[doc = "Bit 0 - IRC oscillator output wake-up configuration"]
#[inline(always)]
pub fn ircout_pd(&self) -> IRCOUT_PD_R {
IRCOUT_PD_R::new((self.bits & 1) != 0)
}
#[doc = "Bit 1 - IRC oscillator power-down wake-up configuration"]
#[inline(always)]
pub fn irc_pd(&self) -> IRC_PD_R {
IRC_PD_R::new(((self.bits >> 1) & 1) != 0)
}
#[doc = "Bit 2 - Flash wake-up configuration"]
#[inline(always)]
pub fn flash_pd(&self) -> FLASH_PD_R {
FLASH_PD_R::new(((self.bits >> 2) & 1) != 0)
}
#[doc = "Bit 3 - BOD wake-up configuration"]
#[inline(always)]
pub fn bod_pd(&self) -> BOD_PD_R {
BOD_PD_R::new(((self.bits >> 3) & 1) != 0)
}
#[doc = "Bit 4 - ADC wake-up configuration"]
#[inline(always)]
pub fn adc_pd(&self) -> ADC_PD_R {
ADC_PD_R::new(((self.bits >> 4) & 1) != 0)
}
#[doc = "Bit 5 - System oscillator wake-up configuration"]
#[inline(always)]
pub fn sysosc_pd(&self) -> SYSOSC_PD_R {
SYSOSC_PD_R::new(((self.bits >> 5) & 1) != 0)
}
#[doc = "Bit 6 - Watchdog oscillator wake-up configuration"]
#[inline(always)]
pub fn wdtosc_pd(&self) -> WDTOSC_PD_R {
WDTOSC_PD_R::new(((self.bits >> 6) & 1) != 0)
}
#[doc = "Bit 7 - System PLL wake-up configuration"]
#[inline(always)]
pub fn syspll_pd(&self) -> SYSPLL_PD_R {
SYSPLL_PD_R::new(((self.bits >> 7) & 1) != 0)
}
#[doc = "Bit 8 - USB PLL wake-up configuration"]
#[inline(always)]
pub fn usbpll_pd(&self) -> USBPLL_PD_R {
USBPLL_PD_R::new(((self.bits >> 8) & 1) != 0)
}
#[doc = "Bit 9 - Reserved. Always write this bit as 0."]
#[inline(always)]
pub fn fixedval0(&self) -> FIXEDVAL0_R {
FIXEDVAL0_R::new(((self.bits >> 9) & 1) != 0)
}
#[doc = "Bit 10 - USB pad wake-up configuration"]
#[inline(always)]
pub fn usbpad_pd(&self) -> USBPAD_PD_R {
USBPAD_PD_R::new(((self.bits >> 10) & 1) != 0)
}
#[doc = "Bit 11 - Reserved. Always write this bit as 1."]
#[inline(always)]
pub fn fixedval1(&self) -> FIXEDVAL1_R {
FIXEDVAL1_R::new(((self.bits >> 11) & 1) != 0)
}
}
impl W {
#[doc = "Bit 0 - IRC oscillator output wake-up configuration"]
#[inline(always)]
pub fn ircout_pd(&mut self) -> IRCOUT_PD_W<0> {
IRCOUT_PD_W::new(self)
}
#[doc = "Bit 1 - IRC oscillator power-down wake-up configuration"]
#[inline(always)]
pub fn irc_pd(&mut self) -> IRC_PD_W<1> {
IRC_PD_W::new(self)
}
#[doc = "Bit 2 - Flash wake-up configuration"]
#[inline(always)]
pub fn flash_pd(&mut self) -> FLASH_PD_W<2> {
FLASH_PD_W::new(self)
}
#[doc = "Bit 3 - BOD wake-up configuration"]
#[inline(always)]
pub fn bod_pd(&mut self) -> BOD_PD_W<3> {
BOD_PD_W::new(self)
}
#[doc = "Bit 4 - ADC wake-up configuration"]
#[inline(always)]
pub fn adc_pd(&mut self) -> ADC_PD_W<4> {
ADC_PD_W::new(self)
}
#[doc = "Bit 5 - System oscillator wake-up configuration"]
#[inline(always)]
pub fn sysosc_pd(&mut self) -> SYSOSC_PD_W<5> {
SYSOSC_PD_W::new(self)
}
#[doc = "Bit 6 - Watchdog oscillator wake-up configuration"]
#[inline(always)]
pub fn wdtosc_pd(&mut self) -> WDTOSC_PD_W<6> {
WDTOSC_PD_W::new(self)
}
#[doc = "Bit 7 - System PLL wake-up configuration"]
#[inline(always)]
pub fn syspll_pd(&mut self) -> SYSPLL_PD_W<7> {
SYSPLL_PD_W::new(self)
}
#[doc = "Bit 8 - USB PLL wake-up configuration"]
#[inline(always)]
pub fn usbpll_pd(&mut self) -> USBPLL_PD_W<8> {
USBPLL_PD_W::new(self)
}
#[doc = "Bit 9 - Reserved. Always write this bit as 0."]
#[inline(always)]
pub fn fixedval0(&mut self) -> FIXEDVAL0_W<9> {
FIXEDVAL0_W::new(self)
}
#[doc = "Bit 10 - USB pad wake-up configuration"]
#[inline(always)]
pub fn usbpad_pd(&mut self) -> USBPAD_PD_W<10> {
USBPAD_PD_W::new(self)
}
#[doc = "Bit 11 - Reserved. Always write this bit as 1."]
#[inline(always)]
pub fn fixedval1(&mut self) -> FIXEDVAL1_W<11> {
FIXEDVAL1_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 = "Power-down states after wake-up from Deep-sleep mode\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 [pdawakecfg](index.html) module"]
pub struct PDAWAKECFG_SPEC;
impl crate::RegisterSpec for PDAWAKECFG_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [pdawakecfg::R](R) reader structure"]
impl crate::Readable for PDAWAKECFG_SPEC {
type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [pdawakecfg::W](W) writer structure"]
impl crate::Writable for PDAWAKECFG_SPEC {
type Writer = W;
}
#[doc = "`reset()` method sets PDAWAKECFG to value 0xfdf0"]
impl crate::Resettable for PDAWAKECFG_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0xfdf0
}
}