pub type R = crate::R<PARAMrs>;
pub type W = crate::W<PARAMrs>;
pub type P_R = crate::FieldReader;
pub type P_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type Q_R = crate::FieldReader;
pub type Q_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type R_R = crate::FieldReader;
pub type R_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type FUNC_R = crate::FieldReader;
pub type FUNC_W<'a, REG> = crate::FieldWriter<'a, REG, 7>;
pub type START_R = crate::BitReader;
pub type START_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn p(&self) -> P_R {
P_R::new((self.bits & 0xff) as u8)
}
#[inline(always)]
pub fn q(&self) -> Q_R {
Q_R::new(((self.bits >> 8) & 0xff) as u8)
}
#[inline(always)]
pub fn r(&self) -> R_R {
R_R::new(((self.bits >> 16) & 0xff) as u8)
}
#[inline(always)]
pub fn func(&self) -> FUNC_R {
FUNC_R::new(((self.bits >> 24) & 0x7f) as u8)
}
#[inline(always)]
pub fn start(&self) -> START_R {
START_R::new(((self.bits >> 31) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("PARAM")
.field("p", &self.p())
.field("q", &self.q())
.field("r", &self.r())
.field("func", &self.func())
.field("start", &self.start())
.finish()
}
}
impl W {
#[inline(always)]
pub fn p(&mut self) -> P_W<PARAMrs> {
P_W::new(self, 0)
}
#[inline(always)]
pub fn q(&mut self) -> Q_W<PARAMrs> {
Q_W::new(self, 8)
}
#[inline(always)]
pub fn r(&mut self) -> R_W<PARAMrs> {
R_W::new(self, 16)
}
#[inline(always)]
pub fn func(&mut self) -> FUNC_W<PARAMrs> {
FUNC_W::new(self, 24)
}
#[inline(always)]
pub fn start(&mut self) -> START_W<PARAMrs> {
START_W::new(self, 31)
}
}
pub struct PARAMrs;
impl crate::RegisterSpec for PARAMrs {
type Ux = u32;
}
impl crate::Readable for PARAMrs {}
impl crate::Writable for PARAMrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for PARAMrs {}