pub type R = crate::R<CRrs>;
pub type W = crate::W<CRrs>;
pub type DEN_R = crate::BitReader;
pub type DEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SEN_R = crate::BitReader;
pub type SEN_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn den(&self) -> DEN_R {
DEN_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn sen(&self) -> SEN_R {
SEN_R::new(((self.bits >> 1) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CR").field("den", &self.den()).field("sen", &self.sen()).finish()
}
}
impl W {
#[inline(always)]
pub fn den(&mut self) -> DEN_W<CRrs> {
DEN_W::new(self, 0)
}
#[inline(always)]
pub fn sen(&mut self) -> SEN_W<CRrs> {
SEN_W::new(self, 1)
}
}
pub struct CRrs;
impl crate::RegisterSpec for CRrs {
type Ux = u32;
}
impl crate::Readable for CRrs {}
impl crate::Writable for CRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CRrs {}