1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
#[doc = "Reader of register PRSTAT3"] pub type R = crate::R<u32, super::PRSTAT3>; #[doc = "EBU Reset Status\n\nValue on reset: 1"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum EBURS_A { #[doc = "0: Reset de-asserted"] VALUE1, #[doc = "1: Reset asserted"] VALUE2, } impl From<EBURS_A> for bool { #[inline(always)] fn from(variant: EBURS_A) -> Self { match variant { EBURS_A::VALUE1 => false, EBURS_A::VALUE2 => true, } } } #[doc = "Reader of field `EBURS`"] pub type EBURS_R = crate::R<bool, EBURS_A>; impl EBURS_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> EBURS_A { match self.bits { false => EBURS_A::VALUE1, true => EBURS_A::VALUE2, } } #[doc = "Checks if the value of the field is `VALUE1`"] #[inline(always)] pub fn is_value1(&self) -> bool { *self == EBURS_A::VALUE1 } #[doc = "Checks if the value of the field is `VALUE2`"] #[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) & 0x01) != 0) } }