pub type W = crate::W<ICRrs>;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CMPMCFW {
Clear = 1,
}
impl From<CMPMCFW> for bool {
#[inline(always)]
fn from(variant: CMPMCFW) -> Self {
variant as u8 != 0
}
}
pub type CMPMCF_W<'a, REG> = crate::BitWriter<'a, REG, CMPMCFW>;
impl<'a, REG> CMPMCF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(CMPMCFW::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum ARRMCFW {
Clear = 1,
}
impl From<ARRMCFW> for bool {
#[inline(always)]
fn from(variant: ARRMCFW) -> Self {
variant as u8 != 0
}
}
pub type ARRMCF_W<'a, REG> = crate::BitWriter<'a, REG, ARRMCFW>;
impl<'a, REG> ARRMCF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(ARRMCFW::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum EXTTRIGCFW {
Clear = 1,
}
impl From<EXTTRIGCFW> for bool {
#[inline(always)]
fn from(variant: EXTTRIGCFW) -> Self {
variant as u8 != 0
}
}
pub type EXTTRIGCF_W<'a, REG> = crate::BitWriter<'a, REG, EXTTRIGCFW>;
impl<'a, REG> EXTTRIGCF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(EXTTRIGCFW::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CMPOKCFW {
Clear = 1,
}
impl From<CMPOKCFW> for bool {
#[inline(always)]
fn from(variant: CMPOKCFW) -> Self {
variant as u8 != 0
}
}
pub type CMPOKCF_W<'a, REG> = crate::BitWriter<'a, REG, CMPOKCFW>;
impl<'a, REG> CMPOKCF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(CMPOKCFW::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum ARROKCFW {
Clear = 1,
}
impl From<ARROKCFW> for bool {
#[inline(always)]
fn from(variant: ARROKCFW) -> Self {
variant as u8 != 0
}
}
pub type ARROKCF_W<'a, REG> = crate::BitWriter<'a, REG, ARROKCFW>;
impl<'a, REG> ARROKCF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(ARROKCFW::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum UPCFW {
Clear = 1,
}
impl From<UPCFW> for bool {
#[inline(always)]
fn from(variant: UPCFW) -> Self {
variant as u8 != 0
}
}
pub type UPCF_W<'a, REG> = crate::BitWriter<'a, REG, UPCFW>;
impl<'a, REG> UPCF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(UPCFW::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum DOWNCFW {
Clear = 1,
}
impl From<DOWNCFW> for bool {
#[inline(always)]
fn from(variant: DOWNCFW) -> Self {
variant as u8 != 0
}
}
pub type DOWNCF_W<'a, REG> = crate::BitWriter<'a, REG, DOWNCFW>;
impl<'a, REG> DOWNCF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(DOWNCFW::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 cmpmcf(&mut self) -> CMPMCF_W<ICRrs> {
CMPMCF_W::new(self, 0)
}
#[inline(always)]
pub fn arrmcf(&mut self) -> ARRMCF_W<ICRrs> {
ARRMCF_W::new(self, 1)
}
#[inline(always)]
pub fn exttrigcf(&mut self) -> EXTTRIGCF_W<ICRrs> {
EXTTRIGCF_W::new(self, 2)
}
#[inline(always)]
pub fn cmpokcf(&mut self) -> CMPOKCF_W<ICRrs> {
CMPOKCF_W::new(self, 3)
}
#[inline(always)]
pub fn arrokcf(&mut self) -> ARROKCF_W<ICRrs> {
ARROKCF_W::new(self, 4)
}
#[inline(always)]
pub fn upcf(&mut self) -> UPCF_W<ICRrs> {
UPCF_W::new(self, 5)
}
#[inline(always)]
pub fn downcf(&mut self) -> DOWNCF_W<ICRrs> {
DOWNCF_W::new(self, 6)
}
}
pub struct ICRrs;
impl crate::RegisterSpec for ICRrs {
type Ux = u32;
}
impl crate::Writable for ICRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for ICRrs {}