pub type R = crate::R<IPGR1rs>;
pub type W = crate::W<IPGR1rs>;
pub type MEMORYPAGE_R = crate::FieldReader;
pub type MEMORYPAGE_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
pub type QOS_MODE_R = crate::BitReader;
pub type QOS_MODE_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn memorypage(&self) -> MEMORYPAGE_R {
MEMORYPAGE_R::new((self.bits & 7) as u8)
}
#[inline(always)]
pub fn qos_mode(&self) -> QOS_MODE_R {
QOS_MODE_R::new(((self.bits >> 24) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("IPGR1")
.field("memorypage", &self.memorypage())
.field("qos_mode", &self.qos_mode())
.finish()
}
}
impl W {
#[inline(always)]
pub fn memorypage(&mut self) -> MEMORYPAGE_W<IPGR1rs> {
MEMORYPAGE_W::new(self, 0)
}
#[inline(always)]
pub fn qos_mode(&mut self) -> QOS_MODE_W<IPGR1rs> {
QOS_MODE_W::new(self, 24)
}
}
pub struct IPGR1rs;
impl crate::RegisterSpec for IPGR1rs {
type Ux = u32;
}
impl crate::Readable for IPGR1rs {}
impl crate::Writable for IPGR1rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for IPGR1rs {
const RESET_VALUE: u32 = 0x02;
}