#[doc = "Register `MIRRSTS` reader"]
pub type R = crate::R<MirrstsSpec>;
#[doc = "HDCLR Mirror Register Write Status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Hdclr {
#[doc = "0: Ready"]
Value1 = 0,
#[doc = "1: Busy"]
Value2 = 1,
}
impl From<Hdclr> for bool {
#[inline(always)]
fn from(variant: Hdclr) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `HDCLR` reader - HDCLR Mirror Register Write Status"]
pub type HdclrR = crate::BitReader<Hdclr>;
impl HdclrR {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub const fn variant(&self) -> Hdclr {
match self.bits {
false => Hdclr::Value1,
true => Hdclr::Value2,
}
}
#[doc = "Ready"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
*self == Hdclr::Value1
}
#[doc = "Busy"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
*self == Hdclr::Value2
}
}
#[doc = "HDSET Mirror Register Write Status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Hdset {
#[doc = "0: Ready"]
Value1 = 0,
#[doc = "1: Busy"]
Value2 = 1,
}
impl From<Hdset> for bool {
#[inline(always)]
fn from(variant: Hdset) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `HDSET` reader - HDSET Mirror Register Write Status"]
pub type HdsetR = crate::BitReader<Hdset>;
impl HdsetR {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub const fn variant(&self) -> Hdset {
match self.bits {
false => Hdset::Value1,
true => Hdset::Value2,
}
}
#[doc = "Ready"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
*self == Hdset::Value1
}
#[doc = "Busy"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
*self == Hdset::Value2
}
}
#[doc = "HDCR Mirror Register Write Status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Hdcr {
#[doc = "0: Ready"]
Value1 = 0,
#[doc = "1: Busy"]
Value2 = 1,
}
impl From<Hdcr> for bool {
#[inline(always)]
fn from(variant: Hdcr) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `HDCR` reader - HDCR Mirror Register Write Status"]
pub type HdcrR = crate::BitReader<Hdcr>;
impl HdcrR {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub const fn variant(&self) -> Hdcr {
match self.bits {
false => Hdcr::Value1,
true => Hdcr::Value2,
}
}
#[doc = "Ready"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
*self == Hdcr::Value1
}
#[doc = "Busy"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
*self == Hdcr::Value2
}
}
#[doc = "OSCSICTRL Mirror Register Write Status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Oscsictrl {
#[doc = "0: Ready"]
Value1 = 0,
#[doc = "1: Busy"]
Value2 = 1,
}
impl From<Oscsictrl> for bool {
#[inline(always)]
fn from(variant: Oscsictrl) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `OSCSICTRL` reader - OSCSICTRL Mirror Register Write Status"]
pub type OscsictrlR = crate::BitReader<Oscsictrl>;
impl OscsictrlR {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub const fn variant(&self) -> Oscsictrl {
match self.bits {
false => Oscsictrl::Value1,
true => Oscsictrl::Value2,
}
}
#[doc = "Ready"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
*self == Oscsictrl::Value1
}
#[doc = "Busy"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
*self == Oscsictrl::Value2
}
}
#[doc = "OSCULCTRL Mirror Register Write Status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Osculctrl {
#[doc = "0: Ready"]
Value1 = 0,
#[doc = "1: Busy"]
Value2 = 1,
}
impl From<Osculctrl> for bool {
#[inline(always)]
fn from(variant: Osculctrl) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `OSCULCTRL` reader - OSCULCTRL Mirror Register Write Status"]
pub type OsculctrlR = crate::BitReader<Osculctrl>;
impl OsculctrlR {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub const fn variant(&self) -> Osculctrl {
match self.bits {
false => Osculctrl::Value1,
true => Osculctrl::Value2,
}
}
#[doc = "Ready"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
*self == Osculctrl::Value1
}
#[doc = "Busy"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
*self == Osculctrl::Value2
}
}
#[doc = "RTC CTR Mirror Register Write Status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum RtcCtr {
#[doc = "0: Ready"]
Value1 = 0,
#[doc = "1: Busy"]
Value2 = 1,
}
impl From<RtcCtr> for bool {
#[inline(always)]
fn from(variant: RtcCtr) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `RTC_CTR` reader - RTC CTR Mirror Register Write Status"]
pub type RtcCtrR = crate::BitReader<RtcCtr>;
impl RtcCtrR {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub const fn variant(&self) -> RtcCtr {
match self.bits {
false => RtcCtr::Value1,
true => RtcCtr::Value2,
}
}
#[doc = "Ready"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
*self == RtcCtr::Value1
}
#[doc = "Busy"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
*self == RtcCtr::Value2
}
}
#[doc = "RTC ATIM0 Mirror Register Write Status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum RtcAtim0 {
#[doc = "0: Ready"]
Value1 = 0,
#[doc = "1: Busy"]
Value2 = 1,
}
impl From<RtcAtim0> for bool {
#[inline(always)]
fn from(variant: RtcAtim0) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `RTC_ATIM0` reader - RTC ATIM0 Mirror Register Write Status"]
pub type RtcAtim0R = crate::BitReader<RtcAtim0>;
impl RtcAtim0R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub const fn variant(&self) -> RtcAtim0 {
match self.bits {
false => RtcAtim0::Value1,
true => RtcAtim0::Value2,
}
}
#[doc = "Ready"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
*self == RtcAtim0::Value1
}
#[doc = "Busy"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
*self == RtcAtim0::Value2
}
}
#[doc = "RTC ATIM1 Mirror Register Write Status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum RtcAtim1 {
#[doc = "0: Ready"]
Value1 = 0,
#[doc = "1: Busy"]
Value2 = 1,
}
impl From<RtcAtim1> for bool {
#[inline(always)]
fn from(variant: RtcAtim1) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `RTC_ATIM1` reader - RTC ATIM1 Mirror Register Write Status"]
pub type RtcAtim1R = crate::BitReader<RtcAtim1>;
impl RtcAtim1R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub const fn variant(&self) -> RtcAtim1 {
match self.bits {
false => RtcAtim1::Value1,
true => RtcAtim1::Value2,
}
}
#[doc = "Ready"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
*self == RtcAtim1::Value1
}
#[doc = "Busy"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
*self == RtcAtim1::Value2
}
}
#[doc = "RTC TIM0 Mirror Register Write Status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum RtcTim0 {
#[doc = "0: Ready"]
Value1 = 0,
#[doc = "1: Busy"]
Value2 = 1,
}
impl From<RtcTim0> for bool {
#[inline(always)]
fn from(variant: RtcTim0) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `RTC_TIM0` reader - RTC TIM0 Mirror Register Write Status"]
pub type RtcTim0R = crate::BitReader<RtcTim0>;
impl RtcTim0R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub const fn variant(&self) -> RtcTim0 {
match self.bits {
false => RtcTim0::Value1,
true => RtcTim0::Value2,
}
}
#[doc = "Ready"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
*self == RtcTim0::Value1
}
#[doc = "Busy"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
*self == RtcTim0::Value2
}
}
#[doc = "RTC TIM1 Mirror Register Write Status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum RtcTim1 {
#[doc = "0: Ready"]
Value1 = 0,
#[doc = "1: Busy"]
Value2 = 1,
}
impl From<RtcTim1> for bool {
#[inline(always)]
fn from(variant: RtcTim1) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `RTC_TIM1` reader - RTC TIM1 Mirror Register Write Status"]
pub type RtcTim1R = crate::BitReader<RtcTim1>;
impl RtcTim1R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub const fn variant(&self) -> RtcTim1 {
match self.bits {
false => RtcTim1::Value1,
true => RtcTim1::Value2,
}
}
#[doc = "Ready"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
*self == RtcTim1::Value1
}
#[doc = "Busy"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
*self == RtcTim1::Value2
}
}
#[doc = "Retention Memory Access Register Update Status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Rmx {
#[doc = "0: Ready"]
Value1 = 0,
#[doc = "1: Busy"]
Value2 = 1,
}
impl From<Rmx> for bool {
#[inline(always)]
fn from(variant: Rmx) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `RMX` reader - Retention Memory Access Register Update Status"]
pub type RmxR = crate::BitReader<Rmx>;
impl RmxR {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub const fn variant(&self) -> Rmx {
match self.bits {
false => Rmx::Value1,
true => Rmx::Value2,
}
}
#[doc = "Ready"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
*self == Rmx::Value1
}
#[doc = "Busy"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
*self == Rmx::Value2
}
}
#[doc = "RTC MSKSSR Mirror Register Write Status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum RtcMsksr {
#[doc = "0: Ready"]
Value1 = 0,
#[doc = "1: Busy"]
Value2 = 1,
}
impl From<RtcMsksr> for bool {
#[inline(always)]
fn from(variant: RtcMsksr) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `RTC_MSKSR` reader - RTC MSKSSR Mirror Register Write Status"]
pub type RtcMsksrR = crate::BitReader<RtcMsksr>;
impl RtcMsksrR {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub const fn variant(&self) -> RtcMsksr {
match self.bits {
false => RtcMsksr::Value1,
true => RtcMsksr::Value2,
}
}
#[doc = "Ready"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
*self == RtcMsksr::Value1
}
#[doc = "Busy"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
*self == RtcMsksr::Value2
}
}
#[doc = "RTC CLRSR Mirror Register Write Status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum RtcClrsr {
#[doc = "0: Ready"]
Value1 = 0,
#[doc = "1: Busy"]
Value2 = 1,
}
impl From<RtcClrsr> for bool {
#[inline(always)]
fn from(variant: RtcClrsr) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `RTC_CLRSR` reader - RTC CLRSR Mirror Register Write Status"]
pub type RtcClrsrR = crate::BitReader<RtcClrsr>;
impl RtcClrsrR {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub const fn variant(&self) -> RtcClrsr {
match self.bits {
false => RtcClrsr::Value1,
true => RtcClrsr::Value2,
}
}
#[doc = "Ready"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
*self == RtcClrsr::Value1
}
#[doc = "Busy"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
*self == RtcClrsr::Value2
}
}
impl R {
#[doc = "Bit 1 - HDCLR Mirror Register Write Status"]
#[inline(always)]
pub fn hdclr(&self) -> HdclrR {
HdclrR::new(((self.bits >> 1) & 1) != 0)
}
#[doc = "Bit 2 - HDSET Mirror Register Write Status"]
#[inline(always)]
pub fn hdset(&self) -> HdsetR {
HdsetR::new(((self.bits >> 2) & 1) != 0)
}
#[doc = "Bit 3 - HDCR Mirror Register Write Status"]
#[inline(always)]
pub fn hdcr(&self) -> HdcrR {
HdcrR::new(((self.bits >> 3) & 1) != 0)
}
#[doc = "Bit 5 - OSCSICTRL Mirror Register Write Status"]
#[inline(always)]
pub fn oscsictrl(&self) -> OscsictrlR {
OscsictrlR::new(((self.bits >> 5) & 1) != 0)
}
#[doc = "Bit 7 - OSCULCTRL Mirror Register Write Status"]
#[inline(always)]
pub fn osculctrl(&self) -> OsculctrlR {
OsculctrlR::new(((self.bits >> 7) & 1) != 0)
}
#[doc = "Bit 8 - RTC CTR Mirror Register Write Status"]
#[inline(always)]
pub fn rtc_ctr(&self) -> RtcCtrR {
RtcCtrR::new(((self.bits >> 8) & 1) != 0)
}
#[doc = "Bit 9 - RTC ATIM0 Mirror Register Write Status"]
#[inline(always)]
pub fn rtc_atim0(&self) -> RtcAtim0R {
RtcAtim0R::new(((self.bits >> 9) & 1) != 0)
}
#[doc = "Bit 10 - RTC ATIM1 Mirror Register Write Status"]
#[inline(always)]
pub fn rtc_atim1(&self) -> RtcAtim1R {
RtcAtim1R::new(((self.bits >> 10) & 1) != 0)
}
#[doc = "Bit 11 - RTC TIM0 Mirror Register Write Status"]
#[inline(always)]
pub fn rtc_tim0(&self) -> RtcTim0R {
RtcTim0R::new(((self.bits >> 11) & 1) != 0)
}
#[doc = "Bit 12 - RTC TIM1 Mirror Register Write Status"]
#[inline(always)]
pub fn rtc_tim1(&self) -> RtcTim1R {
RtcTim1R::new(((self.bits >> 12) & 1) != 0)
}
#[doc = "Bit 13 - Retention Memory Access Register Update Status"]
#[inline(always)]
pub fn rmx(&self) -> RmxR {
RmxR::new(((self.bits >> 13) & 1) != 0)
}
#[doc = "Bit 14 - RTC MSKSSR Mirror Register Write Status"]
#[inline(always)]
pub fn rtc_msksr(&self) -> RtcMsksrR {
RtcMsksrR::new(((self.bits >> 14) & 1) != 0)
}
#[doc = "Bit 15 - RTC CLRSR Mirror Register Write Status"]
#[inline(always)]
pub fn rtc_clrsr(&self) -> RtcClrsrR {
RtcClrsrR::new(((self.bits >> 15) & 1) != 0)
}
}
#[doc = "Mirror Write Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mirrsts::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MirrstsSpec;
impl crate::RegisterSpec for MirrstsSpec {
type Ux = u32;
}
#[doc = "`read()` method returns [`mirrsts::R`](R) reader structure"]
impl crate::Readable for MirrstsSpec {}
#[doc = "`reset()` method sets MIRRSTS to value 0"]
impl crate::Resettable for MirrstsSpec {
const RESET_VALUE: u32 = 0;
}