#[doc = "Register `IER` writer"]
pub type W = crate::W<IerSpec>;
#[doc = "Field `TXRDY` writer - Transmit Ready Interrupt Enable"]
pub type TxrdyW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EOC` writer - End of Conversion Interrupt Enable"]
pub type EocW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ENDTX` writer - End of Transmit Buffer Interrupt Enable"]
pub type EndtxW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `TXBUFE` writer - Transmit Buffer Empty Interrupt Enable"]
pub type TxbufeW<'a, REG> = crate::BitWriter<'a, REG>;
impl W {
#[doc = "Bit 0 - Transmit Ready Interrupt Enable"]
#[inline(always)]
#[must_use]
pub fn txrdy(&mut self) -> TxrdyW<IerSpec> {
TxrdyW::new(self, 0)
}
#[doc = "Bit 1 - End of Conversion Interrupt Enable"]
#[inline(always)]
#[must_use]
pub fn eoc(&mut self) -> EocW<IerSpec> {
EocW::new(self, 1)
}
#[doc = "Bit 2 - End of Transmit Buffer Interrupt Enable"]
#[inline(always)]
#[must_use]
pub fn endtx(&mut self) -> EndtxW<IerSpec> {
EndtxW::new(self, 2)
}
#[doc = "Bit 3 - Transmit Buffer Empty Interrupt Enable"]
#[inline(always)]
#[must_use]
pub fn txbufe(&mut self) -> TxbufeW<IerSpec> {
TxbufeW::new(self, 3)
}
}
#[doc = "Interrupt Enable Register\n\nYou can [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ier::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IerSpec;
impl crate::RegisterSpec for IerSpec {
type Ux = u32;
}
#[doc = "`write(|w| ..)` method takes [`ier::W`](W) writer structure"]
impl crate::Writable for IerSpec {
type Safety = crate::Unsafe;
const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}