#[doc = "Writer for register ICR"]
pub type W = crate::W<u32, super::ICR>;
#[doc = "Register ICR `reset()`'s with value 0"]
impl crate::ResetValue for super::ICR {
type Type = u32;
#[inline(always)]
fn reset_value() -> Self::Type {
0
}
}
#[doc = "Write proxy for field `RIMIC`"]
pub struct RIMIC_W<'a> {
w: &'a mut W,
}
impl<'a> RIMIC_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !0x01) | ((value as u32) & 0x01);
self.w
}
}
#[doc = "Write proxy for field `CTSMIC`"]
pub struct CTSMIC_W<'a> {
w: &'a mut W,
}
impl<'a> CTSMIC_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 1)) | (((value as u32) & 0x01) << 1);
self.w
}
}
#[doc = "Write proxy for field `DCDMIC`"]
pub struct DCDMIC_W<'a> {
w: &'a mut W,
}
impl<'a> DCDMIC_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 2)) | (((value as u32) & 0x01) << 2);
self.w
}
}
#[doc = "Write proxy for field `DSRMIC`"]
pub struct DSRMIC_W<'a> {
w: &'a mut W,
}
impl<'a> DSRMIC_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 3)) | (((value as u32) & 0x01) << 3);
self.w
}
}
#[doc = "Write proxy for field `RXIC`"]
pub struct RXIC_W<'a> {
w: &'a mut W,
}
impl<'a> RXIC_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 4)) | (((value as u32) & 0x01) << 4);
self.w
}
}
#[doc = "Write proxy for field `TXIC`"]
pub struct TXIC_W<'a> {
w: &'a mut W,
}
impl<'a> TXIC_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 5)) | (((value as u32) & 0x01) << 5);
self.w
}
}
#[doc = "Write proxy for field `RTIC`"]
pub struct RTIC_W<'a> {
w: &'a mut W,
}
impl<'a> RTIC_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 6)) | (((value as u32) & 0x01) << 6);
self.w
}
}
#[doc = "Write proxy for field `FEIC`"]
pub struct FEIC_W<'a> {
w: &'a mut W,
}
impl<'a> FEIC_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 7)) | (((value as u32) & 0x01) << 7);
self.w
}
}
#[doc = "Write proxy for field `PEIC`"]
pub struct PEIC_W<'a> {
w: &'a mut W,
}
impl<'a> PEIC_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 8)) | (((value as u32) & 0x01) << 8);
self.w
}
}
#[doc = "Write proxy for field `BEIC`"]
pub struct BEIC_W<'a> {
w: &'a mut W,
}
impl<'a> BEIC_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 9)) | (((value as u32) & 0x01) << 9);
self.w
}
}
#[doc = "Write proxy for field `OEIC`"]
pub struct OEIC_W<'a> {
w: &'a mut W,
}
impl<'a> OEIC_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 10)) | (((value as u32) & 0x01) << 10);
self.w
}
}
#[doc = "Write proxy for field `EOTIC`"]
pub struct EOTIC_W<'a> {
w: &'a mut W,
}
impl<'a> EOTIC_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 11)) | (((value as u32) & 0x01) << 11);
self.w
}
}
#[doc = "Write proxy for field `_9BITIC`"]
pub struct _9BITIC_W<'a> {
w: &'a mut W,
}
impl<'a> _9BITIC_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 12)) | (((value as u32) & 0x01) << 12);
self.w
}
}
#[doc = "Write proxy for field `DMARXIC`"]
pub struct DMARXIC_W<'a> {
w: &'a mut W,
}
impl<'a> DMARXIC_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 16)) | (((value as u32) & 0x01) << 16);
self.w
}
}
#[doc = "Write proxy for field `DMATXIC`"]
pub struct DMATXIC_W<'a> {
w: &'a mut W,
}
impl<'a> DMATXIC_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 17)) | (((value as u32) & 0x01) << 17);
self.w
}
}
impl W {
#[doc = "Bit 0 - UART Ring Indicator Modem Interrupt Clear"]
#[inline(always)]
pub fn rimic(&mut self) -> RIMIC_W {
RIMIC_W { w: self }
}
#[doc = "Bit 1 - UART Clear to Send Modem Interrupt Clear"]
#[inline(always)]
pub fn ctsmic(&mut self) -> CTSMIC_W {
CTSMIC_W { w: self }
}
#[doc = "Bit 2 - UART Data Carrier Detect Modem Interrupt Clear"]
#[inline(always)]
pub fn dcdmic(&mut self) -> DCDMIC_W {
DCDMIC_W { w: self }
}
#[doc = "Bit 3 - UART Data Set Ready Modem Interrupt Clear"]
#[inline(always)]
pub fn dsrmic(&mut self) -> DSRMIC_W {
DSRMIC_W { w: self }
}
#[doc = "Bit 4 - Receive Interrupt Clear"]
#[inline(always)]
pub fn rxic(&mut self) -> RXIC_W {
RXIC_W { w: self }
}
#[doc = "Bit 5 - Transmit Interrupt Clear"]
#[inline(always)]
pub fn txic(&mut self) -> TXIC_W {
TXIC_W { w: self }
}
#[doc = "Bit 6 - Receive Time-Out Interrupt Clear"]
#[inline(always)]
pub fn rtic(&mut self) -> RTIC_W {
RTIC_W { w: self }
}
#[doc = "Bit 7 - Framing Error Interrupt Clear"]
#[inline(always)]
pub fn feic(&mut self) -> FEIC_W {
FEIC_W { w: self }
}
#[doc = "Bit 8 - Parity Error Interrupt Clear"]
#[inline(always)]
pub fn peic(&mut self) -> PEIC_W {
PEIC_W { w: self }
}
#[doc = "Bit 9 - Break Error Interrupt Clear"]
#[inline(always)]
pub fn beic(&mut self) -> BEIC_W {
BEIC_W { w: self }
}
#[doc = "Bit 10 - Overrun Error Interrupt Clear"]
#[inline(always)]
pub fn oeic(&mut self) -> OEIC_W {
OEIC_W { w: self }
}
#[doc = "Bit 11 - End of Transmission Interrupt Clear"]
#[inline(always)]
pub fn eotic(&mut self) -> EOTIC_W {
EOTIC_W { w: self }
}
#[doc = "Bit 12 - 9-Bit Mode Interrupt Clear"]
#[inline(always)]
pub fn _9bitic(&mut self) -> _9BITIC_W {
_9BITIC_W { w: self }
}
#[doc = "Bit 16 - Receive DMA Interrupt Clear"]
#[inline(always)]
pub fn dmarxic(&mut self) -> DMARXIC_W {
DMARXIC_W { w: self }
}
#[doc = "Bit 17 - Transmit DMA Interrupt Clear"]
#[inline(always)]
pub fn dmatxic(&mut self) -> DMATXIC_W {
DMATXIC_W { w: self }
}
}