pub type R = crate::R<_CCERrs>;
pub type W = crate::W<_CCERrs>;
pub type CC1E_R = crate::BitReader;
pub type CC1E_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CC1P_R = crate::BitReader;
pub type CC1P_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CC1NP_R = crate::BitReader;
pub type CC1NP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CC2E_R = crate::BitReader;
pub type CC2E_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CC2P_R = crate::BitReader;
pub type CC2P_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CC2NP_R = crate::BitReader;
pub type CC2NP_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn cc1e(&self) -> CC1E_R {
CC1E_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn cc1p(&self) -> CC1P_R {
CC1P_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn cc1np(&self) -> CC1NP_R {
CC1NP_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn cc2e(&self) -> CC2E_R {
CC2E_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn cc2p(&self) -> CC2P_R {
CC2P_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn cc2np(&self) -> CC2NP_R {
CC2NP_R::new(((self.bits >> 7) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("_CCER")
.field("cc1e", &self.cc1e())
.field("cc1p", &self.cc1p())
.field("cc1np", &self.cc1np())
.field("cc2e", &self.cc2e())
.field("cc2p", &self.cc2p())
.field("cc2np", &self.cc2np())
.finish()
}
}
impl W {
#[inline(always)]
pub fn cc1e(&mut self) -> CC1E_W<_CCERrs> {
CC1E_W::new(self, 0)
}
#[inline(always)]
pub fn cc1p(&mut self) -> CC1P_W<_CCERrs> {
CC1P_W::new(self, 1)
}
#[inline(always)]
pub fn cc1np(&mut self) -> CC1NP_W<_CCERrs> {
CC1NP_W::new(self, 3)
}
#[inline(always)]
pub fn cc2e(&mut self) -> CC2E_W<_CCERrs> {
CC2E_W::new(self, 4)
}
#[inline(always)]
pub fn cc2p(&mut self) -> CC2P_W<_CCERrs> {
CC2P_W::new(self, 5)
}
#[inline(always)]
pub fn cc2np(&mut self) -> CC2NP_W<_CCERrs> {
CC2NP_W::new(self, 7)
}
}
pub struct _CCERrs;
impl crate::RegisterSpec for _CCERrs {
type Ux = u32;
}
impl crate::Readable for _CCERrs {}
impl crate::Writable for _CCERrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for _CCERrs {}