pub type R = crate::R<P0CPPCRrs>;
pub type PAD_R = crate::BitReader;
pub type BSM_R = crate::FieldReader;
pub type OEBS_R = crate::BitReader;
pub type LSM_R = crate::BitReader;
pub type OELS_R = crate::BitReader;
pub type LINEMULT_R = crate::FieldReader;
pub type DBM_R = crate::BitReader;
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("P0CPPCR")
.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()
}
}
pub struct P0CPPCRrs;
impl crate::RegisterSpec for P0CPPCRrs {
type Ux = u32;
}
impl crate::Readable for P0CPPCRrs {}
impl crate::Resettable for P0CPPCRrs {}