pub type R = crate::R<IPC1R3rs>;
pub type W = crate::W<IPC1R3rs>;
pub type DPREGSTART_R = crate::FieldReader;
pub type DPREGSTART_W<'a, REG> = crate::FieldWriter<'a, REG, 5>;
pub type DPREGEND_R = crate::FieldReader;
pub type DPREGEND_W<'a, REG> = crate::FieldWriter<'a, REG, 5>;
impl R {
#[inline(always)]
pub fn dpregstart(&self) -> DPREGSTART_R {
DPREGSTART_R::new((self.bits & 0x1f) as u8)
}
#[inline(always)]
pub fn dpregend(&self) -> DPREGEND_R {
DPREGEND_R::new(((self.bits >> 16) & 0x1f) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("IPC1R3")
.field("dpregstart", &self.dpregstart())
.field("dpregend", &self.dpregend())
.finish()
}
}
impl W {
#[inline(always)]
pub fn dpregstart(&mut self) -> DPREGSTART_W<IPC1R3rs> {
DPREGSTART_W::new(self, 0)
}
#[inline(always)]
pub fn dpregend(&mut self) -> DPREGEND_W<IPC1R3rs> {
DPREGEND_W::new(self, 16)
}
}
pub struct IPC1R3rs;
impl crate::RegisterSpec for IPC1R3rs {
type Ux = u32;
}
impl crate::Readable for IPC1R3rs {}
impl crate::Writable for IPC1R3rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for IPC1R3rs {
const RESET_VALUE: u32 = 0x001f_0000;
}