pub type R = crate::R<IFCRrs>;
pub type W = crate::W<IFCRrs>;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CTEIF {
Clear = 1,
}
impl From<CTEIF> for bool {
#[inline(always)]
fn from(variant: CTEIF) -> Self {
variant as u8 != 0
}
}
pub type CTEIF_R = crate::BitReader<CTEIF>;
impl CTEIF_R {
#[inline(always)]
pub const fn variant(&self) -> Option<CTEIF> {
match self.bits {
true => Some(CTEIF::Clear),
_ => None,
}
}
#[inline(always)]
pub fn is_clear(&self) -> bool {
*self == CTEIF::Clear
}
}
pub type CTEIF_W<'a, REG> = crate::BitWriter<'a, REG, CTEIF>;
impl<'a, REG> CTEIF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(CTEIF::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CTCIF {
Clear = 1,
}
impl From<CTCIF> for bool {
#[inline(always)]
fn from(variant: CTCIF) -> Self {
variant as u8 != 0
}
}
pub type CTCIF_R = crate::BitReader<CTCIF>;
impl CTCIF_R {
#[inline(always)]
pub const fn variant(&self) -> Option<CTCIF> {
match self.bits {
true => Some(CTCIF::Clear),
_ => None,
}
}
#[inline(always)]
pub fn is_clear(&self) -> bool {
*self == CTCIF::Clear
}
}
pub type CTCIF_W<'a, REG> = crate::BitWriter<'a, REG, CTCIF>;
impl<'a, REG> CTCIF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(CTCIF::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CTWIF {
Clear = 1,
}
impl From<CTWIF> for bool {
#[inline(always)]
fn from(variant: CTWIF) -> Self {
variant as u8 != 0
}
}
pub type CTWIF_R = crate::BitReader<CTWIF>;
impl CTWIF_R {
#[inline(always)]
pub const fn variant(&self) -> Option<CTWIF> {
match self.bits {
true => Some(CTWIF::Clear),
_ => None,
}
}
#[inline(always)]
pub fn is_clear(&self) -> bool {
*self == CTWIF::Clear
}
}
pub type CTWIF_W<'a, REG> = crate::BitWriter<'a, REG, CTWIF>;
impl<'a, REG> CTWIF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(CTWIF::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CAECIF {
Clear = 1,
}
impl From<CAECIF> for bool {
#[inline(always)]
fn from(variant: CAECIF) -> Self {
variant as u8 != 0
}
}
pub type CAECIF_R = crate::BitReader<CAECIF>;
impl CAECIF_R {
#[inline(always)]
pub const fn variant(&self) -> Option<CAECIF> {
match self.bits {
true => Some(CAECIF::Clear),
_ => None,
}
}
#[inline(always)]
pub fn is_clear(&self) -> bool {
*self == CAECIF::Clear
}
}
pub type CAECIF_W<'a, REG> = crate::BitWriter<'a, REG, CAECIF>;
impl<'a, REG> CAECIF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(CAECIF::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CCTCIF {
Clear = 1,
}
impl From<CCTCIF> for bool {
#[inline(always)]
fn from(variant: CCTCIF) -> Self {
variant as u8 != 0
}
}
pub type CCTCIF_R = crate::BitReader<CCTCIF>;
impl CCTCIF_R {
#[inline(always)]
pub const fn variant(&self) -> Option<CCTCIF> {
match self.bits {
true => Some(CCTCIF::Clear),
_ => None,
}
}
#[inline(always)]
pub fn is_clear(&self) -> bool {
*self == CCTCIF::Clear
}
}
pub type CCTCIF_W<'a, REG> = crate::BitWriter<'a, REG, CCTCIF>;
impl<'a, REG> CCTCIF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(CCTCIF::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CCEIF {
Clear = 1,
}
impl From<CCEIF> for bool {
#[inline(always)]
fn from(variant: CCEIF) -> Self {
variant as u8 != 0
}
}
pub type CCEIF_R = crate::BitReader<CCEIF>;
impl CCEIF_R {
#[inline(always)]
pub const fn variant(&self) -> Option<CCEIF> {
match self.bits {
true => Some(CCEIF::Clear),
_ => None,
}
}
#[inline(always)]
pub fn is_clear(&self) -> bool {
*self == CCEIF::Clear
}
}
pub type CCEIF_W<'a, REG> = crate::BitWriter<'a, REG, CCEIF>;
impl<'a, REG> CCEIF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(CCEIF::Clear)
}
}
impl R {
#[inline(always)]
pub fn cteif(&self) -> CTEIF_R {
CTEIF_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn ctcif(&self) -> CTCIF_R {
CTCIF_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn ctwif(&self) -> CTWIF_R {
CTWIF_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn caecif(&self) -> CAECIF_R {
CAECIF_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn cctcif(&self) -> CCTCIF_R {
CCTCIF_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn cceif(&self) -> CCEIF_R {
CCEIF_R::new(((self.bits >> 5) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("IFCR")
.field("cceif", &self.cceif())
.field("cctcif", &self.cctcif())
.field("caecif", &self.caecif())
.field("ctwif", &self.ctwif())
.field("ctcif", &self.ctcif())
.field("cteif", &self.cteif())
.finish()
}
}
impl W {
#[inline(always)]
pub fn cteif(&mut self) -> CTEIF_W<IFCRrs> {
CTEIF_W::new(self, 0)
}
#[inline(always)]
pub fn ctcif(&mut self) -> CTCIF_W<IFCRrs> {
CTCIF_W::new(self, 1)
}
#[inline(always)]
pub fn ctwif(&mut self) -> CTWIF_W<IFCRrs> {
CTWIF_W::new(self, 2)
}
#[inline(always)]
pub fn caecif(&mut self) -> CAECIF_W<IFCRrs> {
CAECIF_W::new(self, 3)
}
#[inline(always)]
pub fn cctcif(&mut self) -> CCTCIF_W<IFCRrs> {
CCTCIF_W::new(self, 4)
}
#[inline(always)]
pub fn cceif(&mut self) -> CCEIF_W<IFCRrs> {
CCEIF_W::new(self, 5)
}
}
pub struct IFCRrs;
impl crate::RegisterSpec for IFCRrs {
type Ux = u32;
}
impl crate::Readable for IFCRrs {}
impl crate::Writable for IFCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for IFCRrs {}