pub type R = crate::R<CSR3rs>;
pub type W = crate::W<CSR3rs>;
pub type PDDS_R = crate::BitReader;
pub type PDDS_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CSSF_R = crate::BitReader;
pub type CSSF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type STOPF_R = crate::BitReader;
pub type SBF_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn pdds(&self) -> PDDS_R {
PDDS_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn cssf(&self) -> CSSF_R {
CSSF_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn stopf(&self) -> STOPF_R {
STOPF_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn sbf(&self) -> SBF_R {
SBF_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("CSR3")
.field("pdds", &self.pdds())
.field("cssf", &self.cssf())
.field("stopf", &self.stopf())
.field("sbf", &self.sbf())
.finish()
}
}
impl W {
#[inline(always)]
pub fn pdds(&mut self) -> PDDS_W<CSR3rs> {
PDDS_W::new(self, 0)
}
#[inline(always)]
pub fn cssf(&mut self) -> CSSF_W<CSR3rs> {
CSSF_W::new(self, 1)
}
}
pub struct CSR3rs;
impl crate::RegisterSpec for CSR3rs {
type Ux = u32;
}
impl crate::Readable for CSR3rs {}
impl crate::Writable for CSR3rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CSR3rs {}