pub type R = crate::R<RTORrs>;
pub type W = crate::W<RTORrs>;
pub type RTO_R = crate::FieldReader<u32>;
pub type RTO_W<'a, REG> = crate::FieldWriter<'a, REG, 24, u32, crate::Safe>;
pub type BLEN_R = crate::FieldReader;
pub type BLEN_W<'a, REG> = crate::FieldWriter<'a, REG, 8, u8, crate::Safe>;
impl R {
#[inline(always)]
pub fn rto(&self) -> RTO_R {
RTO_R::new(self.bits & 0x00ff_ffff)
}
#[inline(always)]
pub fn blen(&self) -> BLEN_R {
BLEN_R::new(((self.bits >> 24) & 0xff) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("RTOR")
.field("blen", &self.blen())
.field("rto", &self.rto())
.finish()
}
}
impl W {
#[inline(always)]
pub fn rto(&mut self) -> RTO_W<RTORrs> {
RTO_W::new(self, 0)
}
#[inline(always)]
pub fn blen(&mut self) -> BLEN_W<RTORrs> {
BLEN_W::new(self, 24)
}
}
pub struct RTORrs;
impl crate::RegisterSpec for RTORrs {
type Ux = u32;
}
impl crate::Readable for RTORrs {}
impl crate::Writable for RTORrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for RTORrs {}