pub type R = crate::R<LPTRrs>;
pub type W = crate::W<LPTRrs>;
pub type TIMEOUT_R = crate::FieldReader<u16>;
pub type TIMEOUT_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
impl R {
#[inline(always)]
pub fn timeout(&self) -> TIMEOUT_R {
TIMEOUT_R::new((self.bits & 0xffff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("LPTR").field("timeout", &self.timeout()).finish()
}
}
impl W {
#[inline(always)]
pub fn timeout(&mut self) -> TIMEOUT_W<LPTRrs> {
TIMEOUT_W::new(self, 0)
}
}
pub struct LPTRrs;
impl crate::RegisterSpec for LPTRrs {
type Ux = u32;
}
impl crate::Readable for LPTRrs {}
impl crate::Writable for LPTRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for LPTRrs {}