pub type R = crate::R<CSRrs>;
pub type W = crate::W<CSRrs>;
pub type CSR_R = crate::FieldReader<u32>;
pub type CSR_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
impl R {
#[inline(always)]
pub fn csr(&self) -> CSR_R {
CSR_R::new(self.bits)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CSR").field("csr", &self.csr()).finish()
}
}
impl W {
#[inline(always)]
pub fn csr(&mut self) -> CSR_W<CSRrs> {
CSR_W::new(self, 0)
}
}
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;
}
impl crate::Resettable for CSRrs {}