pub type R = crate::R<SRrs>;
pub type PVU_R = crate::BitReader;
pub type RVU_R = crate::BitReader;
pub type WVU_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn pvu(&self) -> PVU_R {
PVU_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn rvu(&self) -> RVU_R {
RVU_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn wvu(&self) -> WVU_R {
WVU_R::new(((self.bits >> 2) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SR")
.field("wvu", &self.wvu())
.field("rvu", &self.rvu())
.field("pvu", &self.pvu())
.finish()
}
}
pub struct SRrs;
impl crate::RegisterSpec for SRrs {
type Ux = u16;
}
impl crate::Readable for SRrs {}
impl crate::Resettable for SRrs {}