pub type W = crate::W<ICRrs>;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CLIFW {
Clear = 1,
}
impl From<CLIFW> for bool {
#[inline(always)]
fn from(variant: CLIFW) -> Self {
variant as u8 != 0
}
}
pub type CLIF_W<'a, REG> = crate::BitWriter1C<'a, REG, CLIFW>;
impl<'a, REG> CLIF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(CLIFW::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CFUIFW {
Clear = 1,
}
impl From<CFUIFW> for bool {
#[inline(always)]
fn from(variant: CFUIFW) -> Self {
variant as u8 != 0
}
}
pub type CFUIF_W<'a, REG> = crate::BitWriter1C<'a, REG, CFUIFW>;
impl<'a, REG> CFUIF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(CFUIFW::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CTERRIFW {
Clear = 1,
}
impl From<CTERRIFW> for bool {
#[inline(always)]
fn from(variant: CTERRIFW) -> Self {
variant as u8 != 0
}
}
pub type CTERRIF_W<'a, REG> = crate::BitWriter1C<'a, REG, CTERRIFW>;
impl<'a, REG> CTERRIF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(CTERRIFW::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CRRIFW {
Clear = 1,
}
impl From<CRRIFW> for bool {
#[inline(always)]
fn from(variant: CRRIFW) -> Self {
variant as u8 != 0
}
}
pub type CRRIF_W<'a, REG> = crate::BitWriter1C<'a, REG, CRRIFW>;
impl<'a, REG> CRRIF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(CRRIFW::Clear)
}
}
impl core::fmt::Debug for crate::generic::Reg<ICRrs> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
write!(f, "(not readable)")
}
}
impl W {
#[inline(always)]
pub fn clif(&mut self) -> CLIF_W<ICRrs> {
CLIF_W::new(self, 0)
}
#[inline(always)]
pub fn cfuif(&mut self) -> CFUIF_W<ICRrs> {
CFUIF_W::new(self, 1)
}
#[inline(always)]
pub fn cterrif(&mut self) -> CTERRIF_W<ICRrs> {
CTERRIF_W::new(self, 2)
}
#[inline(always)]
pub fn crrif(&mut self) -> CRRIF_W<ICRrs> {
CRRIF_W::new(self, 3)
}
}
pub struct ICRrs;
impl crate::RegisterSpec for ICRrs {
type Ux = u32;
}
impl crate::Writable for ICRrs {
type Safety = crate::Unsafe;
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0x0f;
}
impl crate::Resettable for ICRrs {}