pub type W = crate::W<ICRrs>;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum PECF {
Clear = 1,
}
impl From<PECF> for bool {
#[inline(always)]
fn from(variant: PECF) -> Self {
variant as u8 != 0
}
}
pub type PECF_W<'a, REG> = crate::BitWriter1C<'a, REG, PECF>;
impl<'a, REG> PECF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(PECF::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum FECF {
Clear = 1,
}
impl From<FECF> for bool {
#[inline(always)]
fn from(variant: FECF) -> Self {
variant as u8 != 0
}
}
pub type FECF_W<'a, REG> = crate::BitWriter1C<'a, REG, FECF>;
impl<'a, REG> FECF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(FECF::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum NCF {
Clear = 1,
}
impl From<NCF> for bool {
#[inline(always)]
fn from(variant: NCF) -> Self {
variant as u8 != 0
}
}
pub type NCF_W<'a, REG> = crate::BitWriter1C<'a, REG, NCF>;
impl<'a, REG> NCF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(NCF::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum ORECF {
Clear = 1,
}
impl From<ORECF> for bool {
#[inline(always)]
fn from(variant: ORECF) -> Self {
variant as u8 != 0
}
}
pub type ORECF_W<'a, REG> = crate::BitWriter1C<'a, REG, ORECF>;
impl<'a, REG> ORECF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(ORECF::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum IDLECF {
Clear = 1,
}
impl From<IDLECF> for bool {
#[inline(always)]
fn from(variant: IDLECF) -> Self {
variant as u8 != 0
}
}
pub type IDLECF_W<'a, REG> = crate::BitWriter1C<'a, REG, IDLECF>;
impl<'a, REG> IDLECF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(IDLECF::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum TCCF {
Clear = 1,
}
impl From<TCCF> for bool {
#[inline(always)]
fn from(variant: TCCF) -> Self {
variant as u8 != 0
}
}
pub type TCCF_W<'a, REG> = crate::BitWriter1C<'a, REG, TCCF>;
impl<'a, REG> TCCF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(TCCF::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum LBDCF {
Clear = 1,
}
impl From<LBDCF> for bool {
#[inline(always)]
fn from(variant: LBDCF) -> Self {
variant as u8 != 0
}
}
pub type LBDCF_W<'a, REG> = crate::BitWriter1C<'a, REG, LBDCF>;
impl<'a, REG> LBDCF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(LBDCF::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CTSCF {
Clear = 1,
}
impl From<CTSCF> for bool {
#[inline(always)]
fn from(variant: CTSCF) -> Self {
variant as u8 != 0
}
}
pub type CTSCF_W<'a, REG> = crate::BitWriter1C<'a, REG, CTSCF>;
impl<'a, REG> CTSCF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(CTSCF::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum RTOCF {
Clear = 1,
}
impl From<RTOCF> for bool {
#[inline(always)]
fn from(variant: RTOCF) -> Self {
variant as u8 != 0
}
}
pub type RTOCF_W<'a, REG> = crate::BitWriter1C<'a, REG, RTOCF>;
impl<'a, REG> RTOCF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(RTOCF::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum EOBCF {
Clear = 1,
}
impl From<EOBCF> for bool {
#[inline(always)]
fn from(variant: EOBCF) -> Self {
variant as u8 != 0
}
}
pub type EOBCF_W<'a, REG> = crate::BitWriter1C<'a, REG, EOBCF>;
impl<'a, REG> EOBCF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(EOBCF::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CMCF {
Clear = 1,
}
impl From<CMCF> for bool {
#[inline(always)]
fn from(variant: CMCF) -> Self {
variant as u8 != 0
}
}
pub type CMCF_W<'a, REG> = crate::BitWriter1C<'a, REG, CMCF>;
impl<'a, REG> CMCF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(CMCF::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum WUCF {
Clear = 1,
}
impl From<WUCF> for bool {
#[inline(always)]
fn from(variant: WUCF) -> Self {
variant as u8 != 0
}
}
pub type WUCF_W<'a, REG> = crate::BitWriter1C<'a, REG, WUCF>;
impl<'a, REG> WUCF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(WUCF::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 pecf(&mut self) -> PECF_W<ICRrs> {
PECF_W::new(self, 0)
}
#[inline(always)]
pub fn fecf(&mut self) -> FECF_W<ICRrs> {
FECF_W::new(self, 1)
}
#[inline(always)]
pub fn ncf(&mut self) -> NCF_W<ICRrs> {
NCF_W::new(self, 2)
}
#[inline(always)]
pub fn orecf(&mut self) -> ORECF_W<ICRrs> {
ORECF_W::new(self, 3)
}
#[inline(always)]
pub fn idlecf(&mut self) -> IDLECF_W<ICRrs> {
IDLECF_W::new(self, 4)
}
#[inline(always)]
pub fn tccf(&mut self) -> TCCF_W<ICRrs> {
TCCF_W::new(self, 6)
}
#[inline(always)]
pub fn lbdcf(&mut self) -> LBDCF_W<ICRrs> {
LBDCF_W::new(self, 8)
}
#[inline(always)]
pub fn ctscf(&mut self) -> CTSCF_W<ICRrs> {
CTSCF_W::new(self, 9)
}
#[inline(always)]
pub fn rtocf(&mut self) -> RTOCF_W<ICRrs> {
RTOCF_W::new(self, 11)
}
#[inline(always)]
pub fn eobcf(&mut self) -> EOBCF_W<ICRrs> {
EOBCF_W::new(self, 12)
}
#[inline(always)]
pub fn cmcf(&mut self) -> CMCF_W<ICRrs> {
CMCF_W::new(self, 17)
}
#[inline(always)]
pub fn wucf(&mut self) -> WUCF_W<ICRrs> {
WUCF_W::new(self, 20)
}
}
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 = 0x0012_1b5f;
}
impl crate::Resettable for ICRrs {}