pub type R = crate::R<LIPCRrs>;
pub type W = crate::W<LIPCRrs>;
pub type LIPOS_R = crate::FieldReader<u16>;
pub type LIPOS_W<'a, REG> = crate::FieldWriter<'a, REG, 11, u16, crate::Safe>;
impl R {
#[inline(always)]
pub fn lipos(&self) -> LIPOS_R {
LIPOS_R::new((self.bits & 0x07ff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("LIPCR")
.field("lipos", &self.lipos())
.finish()
}
}
impl W {
#[inline(always)]
pub fn lipos(&mut self) -> LIPOS_W<LIPCRrs> {
LIPOS_W::new(self, 0)
}
}
pub struct LIPCRrs;
impl crate::RegisterSpec for LIPCRrs {
type Ux = u32;
}
impl crate::Readable for LIPCRrs {}
impl crate::Writable for LIPCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for LIPCRrs {}