#[doc = "Register `IN_INT_CLR_CH%s` writer"]
pub type W = crate::W<IN_INT_CLR_CH_SPEC>;
#[doc = "Field `IN_DONE` writer - Set this bit to clear the IN_DONE_CH_INT interrupt."]
pub type IN_DONE_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `IN_SUC_EOF` writer - Set this bit to clear the IN_SUC_EOF_CH_INT interrupt."]
pub type IN_SUC_EOF_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `IN_ERR_EOF` writer - Set this bit to clear the IN_ERR_EOF_CH_INT interrupt."]
pub type IN_ERR_EOF_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `IN_DSCR_ERR` writer - Set this bit to clear the IN_DSCR_ERR_CH_INT interrupt."]
pub type IN_DSCR_ERR_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `IN_DSCR_EMPTY` writer - Set this bit to clear the IN_DSCR_EMPTY_CH_INT interrupt."]
pub type IN_DSCR_EMPTY_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `INFIFO_OVF` writer - Set this bit to clear the INFIFO_OVF_L1_CH_INT interrupt."]
pub type INFIFO_OVF_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `INFIFO_UDF` writer - Set this bit to clear the INFIFO_UDF_L1_CH_INT interrupt."]
pub type INFIFO_UDF_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for crate::generic::Reg<IN_INT_CLR_CH_SPEC> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
write!(f, "(not readable)")
}
}
impl W {
#[doc = "Bit 0 - Set this bit to clear the IN_DONE_CH_INT interrupt."]
#[inline(always)]
#[must_use]
pub fn in_done(&mut self) -> IN_DONE_W<IN_INT_CLR_CH_SPEC, 0> {
IN_DONE_W::new(self)
}
#[doc = "Bit 1 - Set this bit to clear the IN_SUC_EOF_CH_INT interrupt."]
#[inline(always)]
#[must_use]
pub fn in_suc_eof(&mut self) -> IN_SUC_EOF_W<IN_INT_CLR_CH_SPEC, 1> {
IN_SUC_EOF_W::new(self)
}
#[doc = "Bit 2 - Set this bit to clear the IN_ERR_EOF_CH_INT interrupt."]
#[inline(always)]
#[must_use]
pub fn in_err_eof(&mut self) -> IN_ERR_EOF_W<IN_INT_CLR_CH_SPEC, 2> {
IN_ERR_EOF_W::new(self)
}
#[doc = "Bit 3 - Set this bit to clear the IN_DSCR_ERR_CH_INT interrupt."]
#[inline(always)]
#[must_use]
pub fn in_dscr_err(&mut self) -> IN_DSCR_ERR_W<IN_INT_CLR_CH_SPEC, 3> {
IN_DSCR_ERR_W::new(self)
}
#[doc = "Bit 4 - Set this bit to clear the IN_DSCR_EMPTY_CH_INT interrupt."]
#[inline(always)]
#[must_use]
pub fn in_dscr_empty(&mut self) -> IN_DSCR_EMPTY_W<IN_INT_CLR_CH_SPEC, 4> {
IN_DSCR_EMPTY_W::new(self)
}
#[doc = "Bit 5 - Set this bit to clear the INFIFO_OVF_L1_CH_INT interrupt."]
#[inline(always)]
#[must_use]
pub fn infifo_ovf(&mut self) -> INFIFO_OVF_W<IN_INT_CLR_CH_SPEC, 5> {
INFIFO_OVF_W::new(self)
}
#[doc = "Bit 6 - Set this bit to clear the INFIFO_UDF_L1_CH_INT interrupt."]
#[inline(always)]
#[must_use]
pub fn infifo_udf(&mut self) -> INFIFO_UDF_W<IN_INT_CLR_CH_SPEC, 6> {
INFIFO_UDF_W::new(self)
}
#[doc = r" Writes raw bits to the register."]
#[doc = r""]
#[doc = r" # Safety"]
#[doc = r""]
#[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.bits = bits;
self
}
}
#[doc = "Interrupt clear bits of channel 0\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`in_int_clr_ch::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IN_INT_CLR_CH_SPEC;
impl crate::RegisterSpec for IN_INT_CLR_CH_SPEC {
type Ux = u32;
}
#[doc = "`write(|w| ..)` method takes [`in_int_clr_ch::W`](W) writer structure"]
impl crate::Writable for IN_INT_CLR_CH_SPEC {
const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
}
#[doc = "`reset()` method sets IN_INT_CLR_CH%s to value 0"]
impl crate::Resettable for IN_INT_CLR_CH_SPEC {
const RESET_VALUE: Self::Ux = 0;
}