pub type W = crate::W<ICRrs>;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum ADDRCF {
Clear = 1,
}
impl From<ADDRCF> for bool {
#[inline(always)]
fn from(variant: ADDRCF) -> Self {
variant as u8 != 0
}
}
pub type ADDRCF_W<'a, REG> = crate::BitWriter1C<'a, REG, ADDRCF>;
impl<'a, REG> ADDRCF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(ADDRCF::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum NACKCF {
Clear = 1,
}
impl From<NACKCF> for bool {
#[inline(always)]
fn from(variant: NACKCF) -> Self {
variant as u8 != 0
}
}
pub type NACKCF_W<'a, REG> = crate::BitWriter1C<'a, REG, NACKCF>;
impl<'a, REG> NACKCF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(NACKCF::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum STOPCF {
Clear = 1,
}
impl From<STOPCF> for bool {
#[inline(always)]
fn from(variant: STOPCF) -> Self {
variant as u8 != 0
}
}
pub type STOPCF_W<'a, REG> = crate::BitWriter1C<'a, REG, STOPCF>;
impl<'a, REG> STOPCF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(STOPCF::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum BERRCF {
Clear = 1,
}
impl From<BERRCF> for bool {
#[inline(always)]
fn from(variant: BERRCF) -> Self {
variant as u8 != 0
}
}
pub type BERRCF_W<'a, REG> = crate::BitWriter1C<'a, REG, BERRCF>;
impl<'a, REG> BERRCF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(BERRCF::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum ARLOCF {
Clear = 1,
}
impl From<ARLOCF> for bool {
#[inline(always)]
fn from(variant: ARLOCF) -> Self {
variant as u8 != 0
}
}
pub type ARLOCF_W<'a, REG> = crate::BitWriter1C<'a, REG, ARLOCF>;
impl<'a, REG> ARLOCF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(ARLOCF::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum OVRCF {
Clear = 1,
}
impl From<OVRCF> for bool {
#[inline(always)]
fn from(variant: OVRCF) -> Self {
variant as u8 != 0
}
}
pub type OVRCF_W<'a, REG> = crate::BitWriter1C<'a, REG, OVRCF>;
impl<'a, REG> OVRCF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(OVRCF::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum PECCF {
Clear = 1,
}
impl From<PECCF> for bool {
#[inline(always)]
fn from(variant: PECCF) -> Self {
variant as u8 != 0
}
}
pub type PECCF_W<'a, REG> = crate::BitWriter1C<'a, REG, PECCF>;
impl<'a, REG> PECCF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(PECCF::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum TIMOUTCF {
Clear = 1,
}
impl From<TIMOUTCF> for bool {
#[inline(always)]
fn from(variant: TIMOUTCF) -> Self {
variant as u8 != 0
}
}
pub type TIMOUTCF_W<'a, REG> = crate::BitWriter1C<'a, REG, TIMOUTCF>;
impl<'a, REG> TIMOUTCF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(TIMOUTCF::Clear)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum ALERTCF {
Clear = 1,
}
impl From<ALERTCF> for bool {
#[inline(always)]
fn from(variant: ALERTCF) -> Self {
variant as u8 != 0
}
}
pub type ALERTCF_W<'a, REG> = crate::BitWriter1C<'a, REG, ALERTCF>;
impl<'a, REG> ALERTCF_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn clear(self) -> &'a mut crate::W<REG> {
self.variant(ALERTCF::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 addrcf(&mut self) -> ADDRCF_W<ICRrs> {
ADDRCF_W::new(self, 3)
}
#[inline(always)]
pub fn nackcf(&mut self) -> NACKCF_W<ICRrs> {
NACKCF_W::new(self, 4)
}
#[inline(always)]
pub fn stopcf(&mut self) -> STOPCF_W<ICRrs> {
STOPCF_W::new(self, 5)
}
#[inline(always)]
pub fn berrcf(&mut self) -> BERRCF_W<ICRrs> {
BERRCF_W::new(self, 8)
}
#[inline(always)]
pub fn arlocf(&mut self) -> ARLOCF_W<ICRrs> {
ARLOCF_W::new(self, 9)
}
#[inline(always)]
pub fn ovrcf(&mut self) -> OVRCF_W<ICRrs> {
OVRCF_W::new(self, 10)
}
#[inline(always)]
pub fn peccf(&mut self) -> PECCF_W<ICRrs> {
PECCF_W::new(self, 11)
}
#[inline(always)]
pub fn timoutcf(&mut self) -> TIMOUTCF_W<ICRrs> {
TIMOUTCF_W::new(self, 12)
}
#[inline(always)]
pub fn alertcf(&mut self) -> ALERTCF_W<ICRrs> {
ALERTCF_W::new(self, 13)
}
}
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 = 0x3f38;
}
impl crate::Resettable for ICRrs {}