pub type R = crate::R<DMARSWTRrs>;
pub type W = crate::W<DMARSWTRrs>;
pub type RSWTC_R = crate::FieldReader;
pub type RSWTC_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
impl R {
#[inline(always)]
pub fn rswtc(&self) -> RSWTC_R {
RSWTC_R::new((self.bits & 0xff) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DMARSWTR")
.field("rswtc", &self.rswtc())
.finish()
}
}
impl W {
#[inline(always)]
pub fn rswtc(&mut self) -> RSWTC_W<DMARSWTRrs> {
RSWTC_W::new(self, 0)
}
}
pub struct DMARSWTRrs;
impl crate::RegisterSpec for DMARSWTRrs {
type Ux = u32;
}
impl crate::Readable for DMARSWTRrs {}
impl crate::Writable for DMARSWTRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DMARSWTRrs {}