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 EWUP1_R = crate::BitReader;
pub type EWUP1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type EWUP2_R = crate::BitReader;
pub type EWUP2_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 ewup1(&self) -> EWUP1_R {
EWUP1_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn ewup2(&self) -> EWUP2_R {
EWUP2_R::new(((self.bits >> 9) & 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("ewup1", &self.ewup1())
.field("ewup2", &self.ewup2())
.finish()
}
}
impl W {
#[inline(always)]
pub fn ewup1(&mut self) -> EWUP1_W<CSRrs> {
EWUP1_W::new(self, 8)
}
#[inline(always)]
pub fn ewup2(&mut self) -> EWUP2_W<CSRrs> {
EWUP2_W::new(self, 9)
}
}
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;
const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
impl crate::Resettable for CSRrs {
const RESET_VALUE: u32 = 0;
}