pub type R = crate::R<HUFFBASErs>;
pub type W = crate::W<HUFFBASErs>;
pub type DATA0_R = crate::FieldReader<u16>;
pub type DATA0_W<'a, REG> = crate::FieldWriter<'a, REG, 9, u16>;
pub type DATA1_R = crate::FieldReader<u16>;
pub type DATA1_W<'a, REG> = crate::FieldWriter<'a, REG, 9, u16>;
impl R {
#[inline(always)]
pub fn data0(&self) -> DATA0_R {
DATA0_R::new((self.bits & 0x01ff) as u16)
}
#[inline(always)]
pub fn data1(&self) -> DATA1_R {
DATA1_R::new(((self.bits >> 16) & 0x01ff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("HUFFBASE")
.field("data0", &self.data0())
.field("data1", &self.data1())
.finish()
}
}
impl W {
#[inline(always)]
pub fn data0(&mut self) -> DATA0_W<HUFFBASErs> {
DATA0_W::new(self, 0)
}
#[inline(always)]
pub fn data1(&mut self) -> DATA1_W<HUFFBASErs> {
DATA1_W::new(self, 16)
}
}
pub struct HUFFBASErs;
impl crate::RegisterSpec for HUFFBASErs {
type Ux = u32;
}
impl crate::Readable for HUFFBASErs {}
impl crate::Writable for HUFFBASErs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for HUFFBASErs {}