#[doc = "Register `PRSTAT3` reader"]
pub type R = crate::R<PRSTAT3_SPEC>;
#[doc = "EBU Reset Status\n\nValue on reset: 1"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum EBURS_A {
#[doc = "0: Reset de-asserted"]
VALUE1 = 0,
#[doc = "1: Reset asserted"]
VALUE2 = 1,
}
impl From<EBURS_A> for bool {
#[inline(always)]
fn from(variant: EBURS_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Field `EBURS` reader - EBU Reset Status"]
pub type EBURS_R = crate::BitReader<EBURS_A>;
impl EBURS_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub const fn variant(&self) -> EBURS_A {
match self.bits {
false => EBURS_A::VALUE1,
true => EBURS_A::VALUE2,
}
}
#[doc = "Reset de-asserted"]
#[inline(always)]
pub fn is_value1(&self) -> bool {
*self == EBURS_A::VALUE1
}
#[doc = "Reset asserted"]
#[inline(always)]
pub fn is_value2(&self) -> bool {
*self == EBURS_A::VALUE2
}
}
impl R {
#[doc = "Bit 2 - EBU Reset Status"]
#[inline(always)]
pub fn eburs(&self) -> EBURS_R {
EBURS_R::new(((self.bits >> 2) & 1) != 0)
}
}
#[doc = "RCU Peripheral 3 Reset Status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`prstat3::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PRSTAT3_SPEC;
impl crate::RegisterSpec for PRSTAT3_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [`prstat3::R`](R) reader structure"]
impl crate::Readable for PRSTAT3_SPEC {}
#[doc = "`reset()` method sets PRSTAT3 to value 0x04"]
impl crate::Resettable for PRSTAT3_SPEC {
const RESET_VALUE: u32 = 0x04;
}