pub type R = crate::R<P0PPCRrs>;
pub type W = crate::W<P0PPCRrs>;
pub type PAD_R = crate::BitReader;
pub type PAD_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type BSM_R = crate::FieldReader;
pub type BSM_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type OEBS_R = crate::BitReader;
pub type OEBS_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type LSM_R = crate::BitReader;
pub type LSM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OELS_R = crate::BitReader;
pub type OELS_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type LINEMULT_R = crate::FieldReader;
pub type LINEMULT_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
pub type DBM_R = crate::BitReader;
pub type DBM_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn pad(&self) -> PAD_R {
PAD_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn bsm(&self) -> BSM_R {
BSM_R::new(((self.bits >> 7) & 3) as u8)
}
#[inline(always)]
pub fn oebs(&self) -> OEBS_R {
OEBS_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn lsm(&self) -> LSM_R {
LSM_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn oels(&self) -> OELS_R {
OELS_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn linemult(&self) -> LINEMULT_R {
LINEMULT_R::new(((self.bits >> 13) & 7) as u8)
}
#[inline(always)]
pub fn dbm(&self) -> DBM_R {
DBM_R::new(((self.bits >> 16) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("P0PPCR")
.field("pad", &self.pad())
.field("bsm", &self.bsm())
.field("oebs", &self.oebs())
.field("lsm", &self.lsm())
.field("oels", &self.oels())
.field("linemult", &self.linemult())
.field("dbm", &self.dbm())
.finish()
}
}
impl W {
#[inline(always)]
pub fn pad(&mut self) -> PAD_W<P0PPCRrs> {
PAD_W::new(self, 5)
}
#[inline(always)]
pub fn bsm(&mut self) -> BSM_W<P0PPCRrs> {
BSM_W::new(self, 7)
}
#[inline(always)]
pub fn oebs(&mut self) -> OEBS_W<P0PPCRrs> {
OEBS_W::new(self, 9)
}
#[inline(always)]
pub fn lsm(&mut self) -> LSM_W<P0PPCRrs> {
LSM_W::new(self, 10)
}
#[inline(always)]
pub fn oels(&mut self) -> OELS_W<P0PPCRrs> {
OELS_W::new(self, 11)
}
#[inline(always)]
pub fn linemult(&mut self) -> LINEMULT_W<P0PPCRrs> {
LINEMULT_W::new(self, 13)
}
#[inline(always)]
pub fn dbm(&mut self) -> DBM_W<P0PPCRrs> {
DBM_W::new(self, 16)
}
}
pub struct P0PPCRrs;
impl crate::RegisterSpec for P0PPCRrs {
type Ux = u32;
}
impl crate::Readable for P0PPCRrs {}
impl crate::Writable for P0PPCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for P0PPCRrs {}