atsam3n2a/usart0/
spi_mode_ier_spi_mode.rs1#[doc = "Register `IER_SPI_MODE` writer"]
2pub type W = crate::W<SpiModeIerSpiModeSpec>;
3#[doc = "Field `RXRDY` writer - RXRDY Interrupt Enable"]
4pub type RxrdyW<'a, REG> = crate::BitWriter<'a, REG>;
5#[doc = "Field `TXRDY` writer - TXRDY Interrupt Enable"]
6pub type TxrdyW<'a, REG> = crate::BitWriter<'a, REG>;
7#[doc = "Field `OVRE` writer - Overrun Error Interrupt Enable"]
8pub type OvreW<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `TXEMPTY` writer - TXEMPTY Interrupt Enable"]
10pub type TxemptyW<'a, REG> = crate::BitWriter<'a, REG>;
11#[doc = "Field `UNRE` writer - SPI Underrun Error Interrupt Enable"]
12pub type UnreW<'a, REG> = crate::BitWriter<'a, REG>;
13impl W {
14 #[doc = "Bit 0 - RXRDY Interrupt Enable"]
15 #[inline(always)]
16 #[must_use]
17 pub fn rxrdy(&mut self) -> RxrdyW<SpiModeIerSpiModeSpec> {
18 RxrdyW::new(self, 0)
19 }
20 #[doc = "Bit 1 - TXRDY Interrupt Enable"]
21 #[inline(always)]
22 #[must_use]
23 pub fn txrdy(&mut self) -> TxrdyW<SpiModeIerSpiModeSpec> {
24 TxrdyW::new(self, 1)
25 }
26 #[doc = "Bit 5 - Overrun Error Interrupt Enable"]
27 #[inline(always)]
28 #[must_use]
29 pub fn ovre(&mut self) -> OvreW<SpiModeIerSpiModeSpec> {
30 OvreW::new(self, 5)
31 }
32 #[doc = "Bit 9 - TXEMPTY Interrupt Enable"]
33 #[inline(always)]
34 #[must_use]
35 pub fn txempty(&mut self) -> TxemptyW<SpiModeIerSpiModeSpec> {
36 TxemptyW::new(self, 9)
37 }
38 #[doc = "Bit 10 - SPI Underrun Error Interrupt Enable"]
39 #[inline(always)]
40 #[must_use]
41 pub fn unre(&mut self) -> UnreW<SpiModeIerSpiModeSpec> {
42 UnreW::new(self, 10)
43 }
44}
45#[doc = "Interrupt Enable Register\n\nYou can [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`spi_mode_ier_spi_mode::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
46pub struct SpiModeIerSpiModeSpec;
47impl crate::RegisterSpec for SpiModeIerSpiModeSpec {
48 type Ux = u32;
49}
50#[doc = "`write(|w| ..)` method takes [`spi_mode_ier_spi_mode::W`](W) writer structure"]
51impl crate::Writable for SpiModeIerSpiModeSpec {
52 type Safety = crate::Unsafe;
53 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
54 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
55}