pub type R = crate::R<CSRrs>;
pub type USR_R = crate::FieldReader<u16>;
pub type CS_R = crate::FieldReader;
pub type SOB_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn usr(&self) -> USR_R {
USR_R::new((self.bits & 0xffff) as u16)
}
#[inline(always)]
pub fn cs(&self) -> CS_R {
CS_R::new(((self.bits >> 16) & 0xff) as u8)
}
#[inline(always)]
pub fn sob(&self) -> SOB_R {
SOB_R::new(((self.bits >> 24) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CSR")
.field("usr", &self.usr())
.field("cs", &self.cs())
.field("sob", &self.sob())
.finish()
}
}
pub struct CSRrs;
impl crate::RegisterSpec for CSRrs {
type Ux = u32;
}
impl crate::Readable for CSRrs {}
impl crate::Resettable for CSRrs {}