pub type W = crate::W<ICRrs>;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum TXMSGDISCCFW {
Clear = 1,
}
impl From<TXMSGDISCCFW> for bool {
#[inline(always)]
fn from(variant: TXMSGDISCCFW) -> Self {
variant as u8 != 0
}
}
pub type TXMSGDISCCF_W<'a, REG> = crate::BitWriter<'a, REG, TXMSGDISCCFW>;
impl<'a, REG> TXMSGDISCCF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(TXMSGDISCCFW::Clear)
}
}
pub use TXMSGDISCCF_W as TXMSGSENTCF_W;
pub use TXMSGDISCCF_W as TXMSGABTCF_W;
pub use TXMSGDISCCF_W as HRSTDISCCF_W;
pub use TXMSGDISCCF_W as HRSTSENTCF_W;
pub use TXMSGDISCCF_W as TXUNDCF_W;
pub use TXMSGDISCCF_W as RXORDDETCF_W;
pub use TXMSGDISCCF_W as RXHRSTDETCF_W;
pub use TXMSGDISCCF_W as RXOVRCF_W;
pub use TXMSGDISCCF_W as RXMSGENDCF_W;
pub use TXMSGDISCCF_W as TYPECEVT1CF_W;
pub use TXMSGDISCCF_W as TYPECEVT2CF_W;
pub use TXMSGDISCCF_W as FRSEVTCF_W;
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 txmsgdisccf(&mut self) -> TXMSGDISCCF_W<ICRrs> {
TXMSGDISCCF_W::new(self, 1)
}
#[inline(always)]
pub fn txmsgsentcf(&mut self) -> TXMSGSENTCF_W<ICRrs> {
TXMSGSENTCF_W::new(self, 2)
}
#[inline(always)]
pub fn txmsgabtcf(&mut self) -> TXMSGABTCF_W<ICRrs> {
TXMSGABTCF_W::new(self, 3)
}
#[inline(always)]
pub fn hrstdisccf(&mut self) -> HRSTDISCCF_W<ICRrs> {
HRSTDISCCF_W::new(self, 4)
}
#[inline(always)]
pub fn hrstsentcf(&mut self) -> HRSTSENTCF_W<ICRrs> {
HRSTSENTCF_W::new(self, 5)
}
#[inline(always)]
pub fn txundcf(&mut self) -> TXUNDCF_W<ICRrs> {
TXUNDCF_W::new(self, 6)
}
#[inline(always)]
pub fn rxorddetcf(&mut self) -> RXORDDETCF_W<ICRrs> {
RXORDDETCF_W::new(self, 9)
}
#[inline(always)]
pub fn rxhrstdetcf(&mut self) -> RXHRSTDETCF_W<ICRrs> {
RXHRSTDETCF_W::new(self, 10)
}
#[inline(always)]
pub fn rxovrcf(&mut self) -> RXOVRCF_W<ICRrs> {
RXOVRCF_W::new(self, 11)
}
#[inline(always)]
pub fn rxmsgendcf(&mut self) -> RXMSGENDCF_W<ICRrs> {
RXMSGENDCF_W::new(self, 12)
}
#[inline(always)]
pub fn typecevt1cf(&mut self) -> TYPECEVT1CF_W<ICRrs> {
TYPECEVT1CF_W::new(self, 14)
}
#[inline(always)]
pub fn typecevt2cf(&mut self) -> TYPECEVT2CF_W<ICRrs> {
TYPECEVT2CF_W::new(self, 15)
}
#[inline(always)]
pub fn frsevtcf(&mut self) -> FRSEVTCF_W<ICRrs> {
FRSEVTCF_W::new(self, 20)
}
}
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 {}