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