pub type R = crate::R<PDMDLYrs>;
pub type W = crate::W<PDMDLYrs>;
pub type DLYM1L_R = crate::FieldReader;
pub type DLYM1L_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
pub type DLYM1R_R = crate::FieldReader;
pub type DLYM1R_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
pub type DLYM2L_R = crate::FieldReader;
pub type DLYM2L_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
pub type DLYM2R_R = crate::FieldReader;
pub type DLYM2R_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
pub type DLYM3L_R = crate::FieldReader;
pub type DLYM3L_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
pub type DLYM3R_R = crate::FieldReader;
pub type DLYM3R_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
pub type DLYM4L_R = crate::FieldReader;
pub type DLYM4L_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
pub type DLYM4R_R = crate::FieldReader;
pub type DLYM4R_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
impl R {
#[inline(always)]
pub fn dlym1l(&self) -> DLYM1L_R {
DLYM1L_R::new((self.bits & 7) as u8)
}
#[inline(always)]
pub fn dlym1r(&self) -> DLYM1R_R {
DLYM1R_R::new(((self.bits >> 4) & 7) as u8)
}
#[inline(always)]
pub fn dlym2l(&self) -> DLYM2L_R {
DLYM2L_R::new(((self.bits >> 8) & 7) as u8)
}
#[inline(always)]
pub fn dlym2r(&self) -> DLYM2R_R {
DLYM2R_R::new(((self.bits >> 12) & 7) as u8)
}
#[inline(always)]
pub fn dlym3l(&self) -> DLYM3L_R {
DLYM3L_R::new(((self.bits >> 16) & 7) as u8)
}
#[inline(always)]
pub fn dlym3r(&self) -> DLYM3R_R {
DLYM3R_R::new(((self.bits >> 20) & 7) as u8)
}
#[inline(always)]
pub fn dlym4l(&self) -> DLYM4L_R {
DLYM4L_R::new(((self.bits >> 24) & 7) as u8)
}
#[inline(always)]
pub fn dlym4r(&self) -> DLYM4R_R {
DLYM4R_R::new(((self.bits >> 28) & 7) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("PDMDLY")
.field("dlym1l", &self.dlym1l())
.field("dlym1r", &self.dlym1r())
.field("dlym2l", &self.dlym2l())
.field("dlym2r", &self.dlym2r())
.field("dlym3l", &self.dlym3l())
.field("dlym3r", &self.dlym3r())
.field("dlym4l", &self.dlym4l())
.field("dlym4r", &self.dlym4r())
.finish()
}
}
impl W {
#[inline(always)]
pub fn dlym1l(&mut self) -> DLYM1L_W<PDMDLYrs> {
DLYM1L_W::new(self, 0)
}
#[inline(always)]
pub fn dlym1r(&mut self) -> DLYM1R_W<PDMDLYrs> {
DLYM1R_W::new(self, 4)
}
#[inline(always)]
pub fn dlym2l(&mut self) -> DLYM2L_W<PDMDLYrs> {
DLYM2L_W::new(self, 8)
}
#[inline(always)]
pub fn dlym2r(&mut self) -> DLYM2R_W<PDMDLYrs> {
DLYM2R_W::new(self, 12)
}
#[inline(always)]
pub fn dlym3l(&mut self) -> DLYM3L_W<PDMDLYrs> {
DLYM3L_W::new(self, 16)
}
#[inline(always)]
pub fn dlym3r(&mut self) -> DLYM3R_W<PDMDLYrs> {
DLYM3R_W::new(self, 20)
}
#[inline(always)]
pub fn dlym4l(&mut self) -> DLYM4L_W<PDMDLYrs> {
DLYM4L_W::new(self, 24)
}
#[inline(always)]
pub fn dlym4r(&mut self) -> DLYM4R_W<PDMDLYrs> {
DLYM4R_W::new(self, 28)
}
}
pub struct PDMDLYrs;
impl crate::RegisterSpec for PDMDLYrs {
type Ux = u32;
}
impl crate::Readable for PDMDLYrs {}
impl crate::Writable for PDMDLYrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for PDMDLYrs {}