pub type W = crate::W<IFCRrs>;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CGIF1 {
Clear = 1,
}
impl From<CGIF1> for bool {
#[inline(always)]
fn from(variant: CGIF1) -> Self {
variant as u8 != 0
}
}
pub type CGIF_W<'a, REG> = crate::BitWriter<'a, REG, CGIF1>;
impl<'a, REG> CGIF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(CGIF1::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CTCIF1 {
Clear = 1,
}
impl From<CTCIF1> for bool {
#[inline(always)]
fn from(variant: CTCIF1) -> Self {
variant as u8 != 0
}
}
pub type CTCIF_W<'a, REG> = crate::BitWriter<'a, REG, CTCIF1>;
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(CTCIF1::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CHTIF1 {
Clear = 1,
}
impl From<CHTIF1> for bool {
#[inline(always)]
fn from(variant: CHTIF1) -> Self {
variant as u8 != 0
}
}
pub type CHTIF_W<'a, REG> = crate::BitWriter<'a, REG, CHTIF1>;
impl<'a, REG> CHTIF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(CHTIF1::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CTEIF1 {
Clear = 1,
}
impl From<CTEIF1> for bool {
#[inline(always)]
fn from(variant: CTEIF1) -> Self {
variant as u8 != 0
}
}
pub type CTEIF_W<'a, REG> = crate::BitWriter<'a, REG, CTEIF1>;
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(CTEIF1::Clear)
}
}
impl core::fmt::Debug for crate::generic::Reg<IFCRrs> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
write!(f, "(not readable)")
}
}
impl W {
#[inline(always)]
pub fn cgif(&mut self, n: u8) -> CGIF_W<IFCRrs> {
#[allow(clippy::no_effect)]
[(); 7][n as usize];
CGIF_W::new(self, n * 4)
}
#[inline(always)]
pub fn cgif1(&mut self) -> CGIF_W<IFCRrs> {
CGIF_W::new(self, 0)
}
#[inline(always)]
pub fn cgif2(&mut self) -> CGIF_W<IFCRrs> {
CGIF_W::new(self, 4)
}
#[inline(always)]
pub fn cgif3(&mut self) -> CGIF_W<IFCRrs> {
CGIF_W::new(self, 8)
}
#[inline(always)]
pub fn cgif4(&mut self) -> CGIF_W<IFCRrs> {
CGIF_W::new(self, 12)
}
#[inline(always)]
pub fn cgif5(&mut self) -> CGIF_W<IFCRrs> {
CGIF_W::new(self, 16)
}
#[inline(always)]
pub fn cgif6(&mut self) -> CGIF_W<IFCRrs> {
CGIF_W::new(self, 20)
}
#[inline(always)]
pub fn cgif7(&mut self) -> CGIF_W<IFCRrs> {
CGIF_W::new(self, 24)
}
#[inline(always)]
pub fn ctcif(&mut self, n: u8) -> CTCIF_W<IFCRrs> {
#[allow(clippy::no_effect)]
[(); 7][n as usize];
CTCIF_W::new(self, n * 4 + 1)
}
#[inline(always)]
pub fn ctcif1(&mut self) -> CTCIF_W<IFCRrs> {
CTCIF_W::new(self, 1)
}
#[inline(always)]
pub fn ctcif2(&mut self) -> CTCIF_W<IFCRrs> {
CTCIF_W::new(self, 5)
}
#[inline(always)]
pub fn ctcif3(&mut self) -> CTCIF_W<IFCRrs> {
CTCIF_W::new(self, 9)
}
#[inline(always)]
pub fn ctcif4(&mut self) -> CTCIF_W<IFCRrs> {
CTCIF_W::new(self, 13)
}
#[inline(always)]
pub fn ctcif5(&mut self) -> CTCIF_W<IFCRrs> {
CTCIF_W::new(self, 17)
}
#[inline(always)]
pub fn ctcif6(&mut self) -> CTCIF_W<IFCRrs> {
CTCIF_W::new(self, 21)
}
#[inline(always)]
pub fn ctcif7(&mut self) -> CTCIF_W<IFCRrs> {
CTCIF_W::new(self, 25)
}
#[inline(always)]
pub fn chtif(&mut self, n: u8) -> CHTIF_W<IFCRrs> {
#[allow(clippy::no_effect)]
[(); 7][n as usize];
CHTIF_W::new(self, n * 4 + 2)
}
#[inline(always)]
pub fn chtif1(&mut self) -> CHTIF_W<IFCRrs> {
CHTIF_W::new(self, 2)
}
#[inline(always)]
pub fn chtif2(&mut self) -> CHTIF_W<IFCRrs> {
CHTIF_W::new(self, 6)
}
#[inline(always)]
pub fn chtif3(&mut self) -> CHTIF_W<IFCRrs> {
CHTIF_W::new(self, 10)
}
#[inline(always)]
pub fn chtif4(&mut self) -> CHTIF_W<IFCRrs> {
CHTIF_W::new(self, 14)
}
#[inline(always)]
pub fn chtif5(&mut self) -> CHTIF_W<IFCRrs> {
CHTIF_W::new(self, 18)
}
#[inline(always)]
pub fn chtif6(&mut self) -> CHTIF_W<IFCRrs> {
CHTIF_W::new(self, 22)
}
#[inline(always)]
pub fn chtif7(&mut self) -> CHTIF_W<IFCRrs> {
CHTIF_W::new(self, 26)
}
#[inline(always)]
pub fn cteif(&mut self, n: u8) -> CTEIF_W<IFCRrs> {
#[allow(clippy::no_effect)]
[(); 7][n as usize];
CTEIF_W::new(self, n * 4 + 3)
}
#[inline(always)]
pub fn cteif1(&mut self) -> CTEIF_W<IFCRrs> {
CTEIF_W::new(self, 3)
}
#[inline(always)]
pub fn cteif2(&mut self) -> CTEIF_W<IFCRrs> {
CTEIF_W::new(self, 7)
}
#[inline(always)]
pub fn cteif3(&mut self) -> CTEIF_W<IFCRrs> {
CTEIF_W::new(self, 11)
}
#[inline(always)]
pub fn cteif4(&mut self) -> CTEIF_W<IFCRrs> {
CTEIF_W::new(self, 15)
}
#[inline(always)]
pub fn cteif5(&mut self) -> CTEIF_W<IFCRrs> {
CTEIF_W::new(self, 19)
}
#[inline(always)]
pub fn cteif6(&mut self) -> CTEIF_W<IFCRrs> {
CTEIF_W::new(self, 23)
}
#[inline(always)]
pub fn cteif7(&mut self) -> CTEIF_W<IFCRrs> {
CTEIF_W::new(self, 27)
}
}
pub struct IFCRrs;
impl crate::RegisterSpec for IFCRrs {
type Ux = u32;
}
impl crate::Writable for IFCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for IFCRrs {}