pub type R = crate::R<CSRrs>;
pub type W = crate::W<CSRrs>;
pub type WUF_R = crate::BitReader;
pub type SBF_R = crate::BitReader;
pub type PVDO_R = crate::BitReader;
pub type EWUP_R = crate::BitReader;
pub type EWUP_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn wuf(&self) -> WUF_R {
WUF_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn sbf(&self) -> SBF_R {
SBF_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn pvdo(&self) -> PVDO_R {
PVDO_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn ewup(&self) -> EWUP_R {
EWUP_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("CSR")
.field("wuf", &self.wuf())
.field("sbf", &self.sbf())
.field("pvdo", &self.pvdo())
.field("ewup", &self.ewup())
.finish()
}
}
impl W {
#[inline(always)]
pub fn ewup(&mut self) -> EWUP_W<CSRrs> {
EWUP_W::new(self, 8)
}
}
pub struct CSRrs;
impl crate::RegisterSpec for CSRrs {
type Ux = u32;
}
impl crate::Readable for CSRrs {}
impl crate::Writable for CSRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CSRrs {}