pub type W = crate::W<CLRFRrs>;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum COVRUDRW {
Clear = 1,
}
impl From<COVRUDRW> for bool {
#[inline(always)]
fn from(variant: COVRUDRW) -> Self {
variant as u8 != 0
}
}
pub type COVRUDR_W<'a, REG> = crate::BitWriter<'a, REG, COVRUDRW>;
impl<'a, REG> COVRUDR_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(COVRUDRW::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CMUTEDETW {
Clear = 1,
}
impl From<CMUTEDETW> for bool {
#[inline(always)]
fn from(variant: CMUTEDETW) -> Self {
variant as u8 != 0
}
}
pub type CMUTEDET_W<'a, REG> = crate::BitWriter<'a, REG, CMUTEDETW>;
impl<'a, REG> CMUTEDET_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(CMUTEDETW::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CWCKCFGW {
Clear = 1,
}
impl From<CWCKCFGW> for bool {
#[inline(always)]
fn from(variant: CWCKCFGW) -> Self {
variant as u8 != 0
}
}
pub type CWCKCFG_W<'a, REG> = crate::BitWriter<'a, REG, CWCKCFGW>;
impl<'a, REG> CWCKCFG_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(CWCKCFGW::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CCNRDYW {
Clear = 1,
}
impl From<CCNRDYW> for bool {
#[inline(always)]
fn from(variant: CCNRDYW) -> Self {
variant as u8 != 0
}
}
pub type CCNRDY_W<'a, REG> = crate::BitWriter<'a, REG, CCNRDYW>;
impl<'a, REG> CCNRDY_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(CCNRDYW::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CAFSDETW {
Clear = 1,
}
impl From<CAFSDETW> for bool {
#[inline(always)]
fn from(variant: CAFSDETW) -> Self {
variant as u8 != 0
}
}
pub type CAFSDET_W<'a, REG> = crate::BitWriter<'a, REG, CAFSDETW>;
impl<'a, REG> CAFSDET_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(CAFSDETW::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CLFSDETW {
Clear = 1,
}
impl From<CLFSDETW> for bool {
#[inline(always)]
fn from(variant: CLFSDETW) -> Self {
variant as u8 != 0
}
}
pub type CLFSDET_W<'a, REG> = crate::BitWriter<'a, REG, CLFSDETW>;
impl<'a, REG> CLFSDET_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(CLFSDETW::Clear)
}
}
impl core::fmt::Debug for crate::generic::Reg<CLRFRrs> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
write!(f, "(not readable)")
}
}
impl W {
#[inline(always)]
pub fn covrudr(&mut self) -> COVRUDR_W<CLRFRrs> {
COVRUDR_W::new(self, 0)
}
#[inline(always)]
pub fn cmutedet(&mut self) -> CMUTEDET_W<CLRFRrs> {
CMUTEDET_W::new(self, 1)
}
#[inline(always)]
pub fn cwckcfg(&mut self) -> CWCKCFG_W<CLRFRrs> {
CWCKCFG_W::new(self, 2)
}
#[inline(always)]
pub fn ccnrdy(&mut self) -> CCNRDY_W<CLRFRrs> {
CCNRDY_W::new(self, 4)
}
#[inline(always)]
pub fn cafsdet(&mut self) -> CAFSDET_W<CLRFRrs> {
CAFSDET_W::new(self, 5)
}
#[inline(always)]
pub fn clfsdet(&mut self) -> CLFSDET_W<CLRFRrs> {
CLFSDET_W::new(self, 6)
}
}
pub struct CLRFRrs;
impl crate::RegisterSpec for CLRFRrs {
type Ux = u32;
}
impl crate::Writable for CLRFRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CLRFRrs {}