pub type R = crate::R<IRrs>;
pub type W = crate::W<IRrs>;
pub type CWE_R = crate::BitReader;
pub type CWE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CSC_R = crate::BitReader;
pub type CSC_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn cwe(&self) -> CWE_R {
CWE_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn csc(&self) -> CSC_R {
CSC_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("IR").field("cwe", &self.cwe()).field("csc", &self.csc()).finish()
}
}
impl W {
#[inline(always)]
pub fn cwe(&mut self) -> CWE_W<IRrs> {
CWE_W::new(self, 0)
}
#[inline(always)]
pub fn csc(&mut self) -> CSC_W<IRrs> {
CSC_W::new(self, 1)
}
}
pub struct IRrs;
impl crate::RegisterSpec for IRrs {
type Ux = u32;
}
impl crate::Readable for IRrs {}
impl crate::Writable for IRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for IRrs {}