pub type R = crate::R<PMCRrs>;
pub type W = crate::W<PMCRrs>;
pub type I2C1FMP_R = crate::BitReader;
pub type I2C1FMP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type I2C2FMP_R = crate::BitReader;
pub type I2C2FMP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type I2C3FMP_R = crate::BitReader;
pub type I2C3FMP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type I2C4FMP_R = crate::BitReader;
pub type I2C4FMP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PB6FMP_R = crate::BitReader;
pub type PB6FMP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PB7FMP_R = crate::BitReader;
pub type PB7FMP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PB8FMP_R = crate::BitReader;
pub type PB8FMP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PB9FMP_R = crate::BitReader;
pub type PB9FMP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PA0SO_R = crate::BitReader;
pub type PA0SO_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PA1SO_R = crate::BitReader;
pub type PA1SO_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PC2SO_R = crate::BitReader;
pub type PC2SO_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PC3SO_R = crate::BitReader;
pub type PC3SO_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn i2c1fmp(&self) -> I2C1FMP_R {
I2C1FMP_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn i2c2fmp(&self) -> I2C2FMP_R {
I2C2FMP_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn i2c3fmp(&self) -> I2C3FMP_R {
I2C3FMP_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn i2c4fmp(&self) -> I2C4FMP_R {
I2C4FMP_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn pb6fmp(&self) -> PB6FMP_R {
PB6FMP_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn pb7fmp(&self) -> PB7FMP_R {
PB7FMP_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn pb8fmp(&self) -> PB8FMP_R {
PB8FMP_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn pb9fmp(&self) -> PB9FMP_R {
PB9FMP_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn pa0so(&self) -> PA0SO_R {
PA0SO_R::new(((self.bits >> 24) & 1) != 0)
}
#[inline(always)]
pub fn pa1so(&self) -> PA1SO_R {
PA1SO_R::new(((self.bits >> 25) & 1) != 0)
}
#[inline(always)]
pub fn pc2so(&self) -> PC2SO_R {
PC2SO_R::new(((self.bits >> 26) & 1) != 0)
}
#[inline(always)]
pub fn pc3so(&self) -> PC3SO_R {
PC3SO_R::new(((self.bits >> 27) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("PMCR")
.field("i2c1fmp", &self.i2c1fmp())
.field("i2c2fmp", &self.i2c2fmp())
.field("i2c3fmp", &self.i2c3fmp())
.field("i2c4fmp", &self.i2c4fmp())
.field("pb6fmp", &self.pb6fmp())
.field("pb7fmp", &self.pb7fmp())
.field("pb8fmp", &self.pb8fmp())
.field("pb9fmp", &self.pb9fmp())
.field("pa0so", &self.pa0so())
.field("pa1so", &self.pa1so())
.field("pc2so", &self.pc2so())
.field("pc3so", &self.pc3so())
.finish()
}
}
impl W {
#[inline(always)]
pub fn i2c1fmp(&mut self) -> I2C1FMP_W<PMCRrs> {
I2C1FMP_W::new(self, 0)
}
#[inline(always)]
pub fn i2c2fmp(&mut self) -> I2C2FMP_W<PMCRrs> {
I2C2FMP_W::new(self, 1)
}
#[inline(always)]
pub fn i2c3fmp(&mut self) -> I2C3FMP_W<PMCRrs> {
I2C3FMP_W::new(self, 2)
}
#[inline(always)]
pub fn i2c4fmp(&mut self) -> I2C4FMP_W<PMCRrs> {
I2C4FMP_W::new(self, 3)
}
#[inline(always)]
pub fn pb6fmp(&mut self) -> PB6FMP_W<PMCRrs> {
PB6FMP_W::new(self, 4)
}
#[inline(always)]
pub fn pb7fmp(&mut self) -> PB7FMP_W<PMCRrs> {
PB7FMP_W::new(self, 5)
}
#[inline(always)]
pub fn pb8fmp(&mut self) -> PB8FMP_W<PMCRrs> {
PB8FMP_W::new(self, 6)
}
#[inline(always)]
pub fn pb9fmp(&mut self) -> PB9FMP_W<PMCRrs> {
PB9FMP_W::new(self, 7)
}
#[inline(always)]
pub fn pa0so(&mut self) -> PA0SO_W<PMCRrs> {
PA0SO_W::new(self, 24)
}
#[inline(always)]
pub fn pa1so(&mut self) -> PA1SO_W<PMCRrs> {
PA1SO_W::new(self, 25)
}
#[inline(always)]
pub fn pc2so(&mut self) -> PC2SO_W<PMCRrs> {
PC2SO_W::new(self, 26)
}
#[inline(always)]
pub fn pc3so(&mut self) -> PC3SO_W<PMCRrs> {
PC3SO_W::new(self, 27)
}
}
pub struct PMCRrs;
impl crate::RegisterSpec for PMCRrs {
type Ux = u32;
}
impl crate::Readable for PMCRrs {}
impl crate::Writable for PMCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for PMCRrs {}