pub type R = crate::R<PSRrs>;
pub type PD_R = crate::BitReader;
pub type PSSC_R = crate::BitReader;
pub type UANC_R = crate::BitReader;
pub type PSS0_R = crate::BitReader;
pub type UAN0_R = crate::BitReader;
pub type RUE0_R = crate::BitReader;
pub type PSS1_R = crate::BitReader;
pub type UAN1_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn pd(&self) -> PD_R {
PD_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn pssc(&self) -> PSSC_R {
PSSC_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn uanc(&self) -> UANC_R {
UANC_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn pss0(&self) -> PSS0_R {
PSS0_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn uan0(&self) -> UAN0_R {
UAN0_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn rue0(&self) -> RUE0_R {
RUE0_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn pss1(&self) -> PSS1_R {
PSS1_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn uan1(&self) -> UAN1_R {
UAN1_R::new(((self.bits >> 8) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("PSR")
.field("pd", &self.pd())
.field("pssc", &self.pssc())
.field("uanc", &self.uanc())
.field("pss0", &self.pss0())
.field("uan0", &self.uan0())
.field("rue0", &self.rue0())
.field("pss1", &self.pss1())
.field("uan1", &self.uan1())
.finish()
}
}
pub struct PSRrs;
impl crate::RegisterSpec for PSRrs {
type Ux = u32;
}
impl crate::Readable for PSRrs {}
impl crate::Resettable for PSRrs {
const RESET_VALUE: u32 = 0x1528;
}