pub type R = crate::R<MACRX_QC1Rrs>;
pub type W = crate::W<MACRX_QC1Rrs>;
pub type AVCPQ_R = crate::FieldReader;
pub type AVCPQ_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
pub type AVPTPQ_R = crate::FieldReader;
pub type AVPTPQ_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
pub type UPQ_R = crate::FieldReader;
pub type UPQ_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
pub type MCBCQ_R = crate::FieldReader;
pub type MCBCQ_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
pub type MCBCQEN_R = crate::BitReader;
pub type MCBCQEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TACPQE_R = crate::BitReader;
pub type TACPQE_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn avcpq(&self) -> AVCPQ_R {
AVCPQ_R::new((self.bits & 7) as u8)
}
#[inline(always)]
pub fn avptpq(&self) -> AVPTPQ_R {
AVPTPQ_R::new(((self.bits >> 4) & 7) as u8)
}
#[inline(always)]
pub fn upq(&self) -> UPQ_R {
UPQ_R::new(((self.bits >> 12) & 7) as u8)
}
#[inline(always)]
pub fn mcbcq(&self) -> MCBCQ_R {
MCBCQ_R::new(((self.bits >> 16) & 7) as u8)
}
#[inline(always)]
pub fn mcbcqen(&self) -> MCBCQEN_R {
MCBCQEN_R::new(((self.bits >> 20) & 1) != 0)
}
#[inline(always)]
pub fn tacpqe(&self) -> TACPQE_R {
TACPQE_R::new(((self.bits >> 21) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("MACRxQC1R")
.field("avcpq", &self.avcpq())
.field("avptpq", &self.avptpq())
.field("upq", &self.upq())
.field("mcbcq", &self.mcbcq())
.field("mcbcqen", &self.mcbcqen())
.field("tacpqe", &self.tacpqe())
.finish()
}
}
impl W {
#[inline(always)]
pub fn avcpq(&mut self) -> AVCPQ_W<MACRX_QC1Rrs> {
AVCPQ_W::new(self, 0)
}
#[inline(always)]
pub fn avptpq(&mut self) -> AVPTPQ_W<MACRX_QC1Rrs> {
AVPTPQ_W::new(self, 4)
}
#[inline(always)]
pub fn upq(&mut self) -> UPQ_W<MACRX_QC1Rrs> {
UPQ_W::new(self, 12)
}
#[inline(always)]
pub fn mcbcq(&mut self) -> MCBCQ_W<MACRX_QC1Rrs> {
MCBCQ_W::new(self, 16)
}
#[inline(always)]
pub fn mcbcqen(&mut self) -> MCBCQEN_W<MACRX_QC1Rrs> {
MCBCQEN_W::new(self, 20)
}
#[inline(always)]
pub fn tacpqe(&mut self) -> TACPQE_W<MACRX_QC1Rrs> {
TACPQE_W::new(self, 21)
}
}
pub struct MACRX_QC1Rrs;
impl crate::RegisterSpec for MACRX_QC1Rrs {
type Ux = u32;
}
impl crate::Readable for MACRX_QC1Rrs {}
impl crate::Writable for MACRX_QC1Rrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for MACRX_QC1Rrs {}