#[doc = "Register `SRRAW` reader"]
pub type R = crate::R<SRRAW_SPEC>;
#[doc = "WDT pre-warning Interrupt Status Before Masking\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum PRWARN_A {
#[doc = "0: Inactive"]
VALUE1 = 0,
#[doc = "1: Active"]
VALUE2 = 1,
}
impl From<PRWARN_A> for bool {
#[inline(always)]
fn from(variant: PRWARN_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `PRWARN` reader - WDT pre-warning Interrupt Status Before Masking"]
pub type PRWARN_R = crate::BitReader<PRWARN_A>;
impl PRWARN_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub const fn variant(&self) -> PRWARN_A {
match self.bits {
false => PRWARN_A::VALUE1,
true => PRWARN_A::VALUE2,
}
}
#[doc = "Inactive"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
*self == PRWARN_A::VALUE1
}
#[doc = "Active"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
*self == PRWARN_A::VALUE2
}
}
#[doc = "Field `PI` reader - RTC Raw Periodic Interrupt Status Before Masking"]
pub type PI_R = crate::BitReader;
#[doc = "Field `AI` reader - RTC Raw Alarm Interrupt Status Before Masking"]
pub type AI_R = crate::BitReader;
#[doc = "Field `DLROVR` reader - DLR Request Overrun Interrupt Status Before Masking"]
pub type DLROVR_R = crate::BitReader;
#[doc = "HDCLR Mirror Register Update Status Before Masking\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum HDCLR_A {
#[doc = "0: Not updated"]
VALUE1 = 0,
#[doc = "1: Update completed"]
VALUE2 = 1,
}
impl From<HDCLR_A> for bool {
#[inline(always)]
fn from(variant: HDCLR_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `HDCLR` reader - HDCLR Mirror Register Update Status Before Masking"]
pub type HDCLR_R = crate::BitReader<HDCLR_A>;
impl HDCLR_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub const fn variant(&self) -> HDCLR_A {
match self.bits {
false => HDCLR_A::VALUE1,
true => HDCLR_A::VALUE2,
}
}
#[doc = "Not updated"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
*self == HDCLR_A::VALUE1
}
#[doc = "Update completed"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
*self == HDCLR_A::VALUE2
}
}
#[doc = "HDSET Mirror Register Update Status Before Masking\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum HDSET_A {
#[doc = "0: Not updated"]
VALUE1 = 0,
#[doc = "1: Update completed"]
VALUE2 = 1,
}
impl From<HDSET_A> for bool {
#[inline(always)]
fn from(variant: HDSET_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `HDSET` reader - HDSET Mirror Register Update Status Before Masking"]
pub type HDSET_R = crate::BitReader<HDSET_A>;
impl HDSET_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub const fn variant(&self) -> HDSET_A {
match self.bits {
false => HDSET_A::VALUE1,
true => HDSET_A::VALUE2,
}
}
#[doc = "Not updated"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
*self == HDSET_A::VALUE1
}
#[doc = "Update completed"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
*self == HDSET_A::VALUE2
}
}
#[doc = "HDCR Mirror Register Update Status Before Masking\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum HDCR_A {
#[doc = "0: Not updated"]
VALUE1 = 0,
#[doc = "1: Update completed"]
VALUE2 = 1,
}
impl From<HDCR_A> for bool {
#[inline(always)]
fn from(variant: HDCR_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `HDCR` reader - HDCR Mirror Register Update Status Before Masking"]
pub type HDCR_R = crate::BitReader<HDCR_A>;
impl HDCR_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub const fn variant(&self) -> HDCR_A {
match self.bits {
false => HDCR_A::VALUE1,
true => HDCR_A::VALUE2,
}
}
#[doc = "Not updated"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
*self == HDCR_A::VALUE1
}
#[doc = "Update completed"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
*self == HDCR_A::VALUE2
}
}
#[doc = "OSCSICTRL Mirror Register Update Status Before Masking\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum OSCSICTRL_A {
#[doc = "0: Not updated"]
VALUE1 = 0,
#[doc = "1: Update completed"]
VALUE2 = 1,
}
impl From<OSCSICTRL_A> for bool {
#[inline(always)]
fn from(variant: OSCSICTRL_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `OSCSICTRL` reader - OSCSICTRL Mirror Register Update Status Before Masking"]
pub type OSCSICTRL_R = crate::BitReader<OSCSICTRL_A>;
impl OSCSICTRL_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub const fn variant(&self) -> OSCSICTRL_A {
match self.bits {
false => OSCSICTRL_A::VALUE1,
true => OSCSICTRL_A::VALUE2,
}
}
#[doc = "Not updated"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
*self == OSCSICTRL_A::VALUE1
}
#[doc = "Update completed"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
*self == OSCSICTRL_A::VALUE2
}
}
#[doc = "OSCULCTRL Mirror Register Update Status Before Masking\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum OSCULCTRL_A {
#[doc = "0: Not updated"]
VALUE1 = 0,
#[doc = "1: Update completed"]
VALUE2 = 1,
}
impl From<OSCULCTRL_A> for bool {
#[inline(always)]
fn from(variant: OSCULCTRL_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `OSCULCTRL` reader - OSCULCTRL Mirror Register Update Status Before Masking"]
pub type OSCULCTRL_R = crate::BitReader<OSCULCTRL_A>;
impl OSCULCTRL_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub const fn variant(&self) -> OSCULCTRL_A {
match self.bits {
false => OSCULCTRL_A::VALUE1,
true => OSCULCTRL_A::VALUE2,
}
}
#[doc = "Not updated"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
*self == OSCULCTRL_A::VALUE1
}
#[doc = "Update completed"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
*self == OSCULCTRL_A::VALUE2
}
}
#[doc = "RTC CTR Mirror Register Update Status Before Masking\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum RTC_CTR_A {
#[doc = "0: Not updated"]
VALUE1 = 0,
#[doc = "1: Update completed"]
VALUE2 = 1,
}
impl From<RTC_CTR_A> for bool {
#[inline(always)]
fn from(variant: RTC_CTR_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `RTC_CTR` reader - RTC CTR Mirror Register Update Status Before Masking"]
pub type RTC_CTR_R = crate::BitReader<RTC_CTR_A>;
impl RTC_CTR_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub const fn variant(&self) -> RTC_CTR_A {
match self.bits {
false => RTC_CTR_A::VALUE1,
true => RTC_CTR_A::VALUE2,
}
}
#[doc = "Not updated"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
*self == RTC_CTR_A::VALUE1
}
#[doc = "Update completed"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
*self == RTC_CTR_A::VALUE2
}
}
#[doc = "RTC ATIM0 Mirror Register Update Status Before Masking\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum RTC_ATIM0_A {
#[doc = "0: Not updated"]
VALUE1 = 0,
#[doc = "1: Update completed"]
VALUE2 = 1,
}
impl From<RTC_ATIM0_A> for bool {
#[inline(always)]
fn from(variant: RTC_ATIM0_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `RTC_ATIM0` reader - RTC ATIM0 Mirror Register Update Status Before Masking"]
pub type RTC_ATIM0_R = crate::BitReader<RTC_ATIM0_A>;
impl RTC_ATIM0_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub const fn variant(&self) -> RTC_ATIM0_A {
match self.bits {
false => RTC_ATIM0_A::VALUE1,
true => RTC_ATIM0_A::VALUE2,
}
}
#[doc = "Not updated"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
*self == RTC_ATIM0_A::VALUE1
}
#[doc = "Update completed"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
*self == RTC_ATIM0_A::VALUE2
}
}
#[doc = "RTC ATIM1 Mirror Register Update Status Before Masking\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum RTC_ATIM1_A {
#[doc = "0: Not updated"]
VALUE1 = 0,
#[doc = "1: Update completed"]
VALUE2 = 1,
}
impl From<RTC_ATIM1_A> for bool {
#[inline(always)]
fn from(variant: RTC_ATIM1_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `RTC_ATIM1` reader - RTC ATIM1 Mirror Register Update Status Before Masking"]
pub type RTC_ATIM1_R = crate::BitReader<RTC_ATIM1_A>;
impl RTC_ATIM1_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub const fn variant(&self) -> RTC_ATIM1_A {
match self.bits {
false => RTC_ATIM1_A::VALUE1,
true => RTC_ATIM1_A::VALUE2,
}
}
#[doc = "Not updated"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
*self == RTC_ATIM1_A::VALUE1
}
#[doc = "Update completed"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
*self == RTC_ATIM1_A::VALUE2
}
}
#[doc = "RTC TIM0 Mirror Register Update Before Masking Status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum RTC_TIM0_A {
#[doc = "0: Not updated"]
VALUE1 = 0,
#[doc = "1: Update completed"]
VALUE2 = 1,
}
impl From<RTC_TIM0_A> for bool {
#[inline(always)]
fn from(variant: RTC_TIM0_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `RTC_TIM0` reader - RTC TIM0 Mirror Register Update Before Masking Status"]
pub type RTC_TIM0_R = crate::BitReader<RTC_TIM0_A>;
impl RTC_TIM0_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub const fn variant(&self) -> RTC_TIM0_A {
match self.bits {
false => RTC_TIM0_A::VALUE1,
true => RTC_TIM0_A::VALUE2,
}
}
#[doc = "Not updated"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
*self == RTC_TIM0_A::VALUE1
}
#[doc = "Update completed"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
*self == RTC_TIM0_A::VALUE2
}
}
#[doc = "RTC TIM1 Mirror Register Update Status Before Masking\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum RTC_TIM1_A {
#[doc = "0: Not updated"]
VALUE1 = 0,
#[doc = "1: Update completed"]
VALUE2 = 1,
}
impl From<RTC_TIM1_A> for bool {
#[inline(always)]
fn from(variant: RTC_TIM1_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `RTC_TIM1` reader - RTC TIM1 Mirror Register Update Status Before Masking"]
pub type RTC_TIM1_R = crate::BitReader<RTC_TIM1_A>;
impl RTC_TIM1_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub const fn variant(&self) -> RTC_TIM1_A {
match self.bits {
false => RTC_TIM1_A::VALUE1,
true => RTC_TIM1_A::VALUE2,
}
}
#[doc = "Not updated"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
*self == RTC_TIM1_A::VALUE1
}
#[doc = "Update completed"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
*self == RTC_TIM1_A::VALUE2
}
}
#[doc = "Retention Memory Mirror Register Update Status Before Masking\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum RMX_A {
#[doc = "0: Not updated"]
VALUE1 = 0,
#[doc = "1: Update completed"]
VALUE2 = 1,
}
impl From<RMX_A> for bool {
#[inline(always)]
fn from(variant: RMX_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `RMX` reader - Retention Memory Mirror Register Update Status Before Masking"]
pub type RMX_R = crate::BitReader<RMX_A>;
impl RMX_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub const fn variant(&self) -> RMX_A {
match self.bits {
false => RMX_A::VALUE1,
true => RMX_A::VALUE2,
}
}
#[doc = "Not updated"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
*self == RMX_A::VALUE1
}
#[doc = "Update completed"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
*self == RMX_A::VALUE2
}
}
impl R {
#[doc = "Bit 0 - WDT pre-warning Interrupt Status Before Masking"]
#[inline(always)]
pub fn prwarn(&self) -> PRWARN_R {
PRWARN_R::new((self.bits & 1) != 0)
}
#[doc = "Bit 1 - RTC Raw Periodic Interrupt Status Before Masking"]
#[inline(always)]
pub fn pi(&self) -> PI_R {
PI_R::new(((self.bits >> 1) & 1) != 0)
}
#[doc = "Bit 2 - RTC Raw Alarm Interrupt Status Before Masking"]
#[inline(always)]
pub fn ai(&self) -> AI_R {
AI_R::new(((self.bits >> 2) & 1) != 0)
}
#[doc = "Bit 3 - DLR Request Overrun Interrupt Status Before Masking"]
#[inline(always)]
pub fn dlrovr(&self) -> DLROVR_R {
DLROVR_R::new(((self.bits >> 3) & 1) != 0)
}
#[doc = "Bit 17 - HDCLR Mirror Register Update Status Before Masking"]
#[inline(always)]
pub fn hdclr(&self) -> HDCLR_R {
HDCLR_R::new(((self.bits >> 17) & 1) != 0)
}
#[doc = "Bit 18 - HDSET Mirror Register Update Status Before Masking"]
#[inline(always)]
pub fn hdset(&self) -> HDSET_R {
HDSET_R::new(((self.bits >> 18) & 1) != 0)
}
#[doc = "Bit 19 - HDCR Mirror Register Update Status Before Masking"]
#[inline(always)]
pub fn hdcr(&self) -> HDCR_R {
HDCR_R::new(((self.bits >> 19) & 1) != 0)
}
#[doc = "Bit 21 - OSCSICTRL Mirror Register Update Status Before Masking"]
#[inline(always)]
pub fn oscsictrl(&self) -> OSCSICTRL_R {
OSCSICTRL_R::new(((self.bits >> 21) & 1) != 0)
}
#[doc = "Bit 23 - OSCULCTRL Mirror Register Update Status Before Masking"]
#[inline(always)]
pub fn osculctrl(&self) -> OSCULCTRL_R {
OSCULCTRL_R::new(((self.bits >> 23) & 1) != 0)
}
#[doc = "Bit 24 - RTC CTR Mirror Register Update Status Before Masking"]
#[inline(always)]
pub fn rtc_ctr(&self) -> RTC_CTR_R {
RTC_CTR_R::new(((self.bits >> 24) & 1) != 0)
}
#[doc = "Bit 25 - RTC ATIM0 Mirror Register Update Status Before Masking"]
#[inline(always)]
pub fn rtc_atim0(&self) -> RTC_ATIM0_R {
RTC_ATIM0_R::new(((self.bits >> 25) & 1) != 0)
}
#[doc = "Bit 26 - RTC ATIM1 Mirror Register Update Status Before Masking"]
#[inline(always)]
pub fn rtc_atim1(&self) -> RTC_ATIM1_R {
RTC_ATIM1_R::new(((self.bits >> 26) & 1) != 0)
}
#[doc = "Bit 27 - RTC TIM0 Mirror Register Update Before Masking Status"]
#[inline(always)]
pub fn rtc_tim0(&self) -> RTC_TIM0_R {
RTC_TIM0_R::new(((self.bits >> 27) & 1) != 0)
}
#[doc = "Bit 28 - RTC TIM1 Mirror Register Update Status Before Masking"]
#[inline(always)]
pub fn rtc_tim1(&self) -> RTC_TIM1_R {
RTC_TIM1_R::new(((self.bits >> 28) & 1) != 0)
}
#[doc = "Bit 29 - Retention Memory Mirror Register Update Status Before Masking"]
#[inline(always)]
pub fn rmx(&self) -> RMX_R {
RMX_R::new(((self.bits >> 29) & 1) != 0)
}
}
#[doc = "SCU Raw Service Request Status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`srraw::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SRRAW_SPEC;
impl crate::RegisterSpec for SRRAW_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [`srraw::R`](R) reader structure"]
impl crate::Readable for SRRAW_SPEC {}
#[doc = "`reset()` method sets SRRAW to value 0"]
impl crate::Resettable for SRRAW_SPEC {
const RESET_VALUE: u32 = 0;
}