pub type R = crate::R<CSRrs>;
pub type W = crate::W<CSRrs>;
pub type CS_R = crate::FieldReader<u32>;
pub type CS_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
impl R {
#[inline(always)]
pub fn cs(&self) -> CS_R {
CS_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("cs", &self.cs()).finish()
}
}
impl W {
#[inline(always)]
pub fn cs(&mut self) -> CS_W<CSRrs> {
CS_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 {}