Skip to main content

atsam3n00a/dacc/
isr.rs

1#[doc = "Register `ISR` reader"]
2pub type R = crate::R<IsrSpec>;
3#[doc = "Field `TXRDY` reader - Transmission Ready Interrupt Flag"]
4pub type TxrdyR = crate::BitReader;
5#[doc = "Field `ENDTX` reader - End of PDC Interrupt Flag"]
6pub type EndtxR = crate::BitReader;
7#[doc = "Field `TXBUFE` reader - Buffer Empty Interrupt Flag"]
8pub type TxbufeR = crate::BitReader;
9impl R {
10    #[doc = "Bit 0 - Transmission Ready Interrupt Flag"]
11    #[inline(always)]
12    pub fn txrdy(&self) -> TxrdyR {
13        TxrdyR::new((self.bits & 1) != 0)
14    }
15    #[doc = "Bit 1 - End of PDC Interrupt Flag"]
16    #[inline(always)]
17    pub fn endtx(&self) -> EndtxR {
18        EndtxR::new(((self.bits >> 1) & 1) != 0)
19    }
20    #[doc = "Bit 2 - Buffer Empty Interrupt Flag"]
21    #[inline(always)]
22    pub fn txbufe(&self) -> TxbufeR {
23        TxbufeR::new(((self.bits >> 2) & 1) != 0)
24    }
25}
26#[doc = "Interrupt Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`isr::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
27pub struct IsrSpec;
28impl crate::RegisterSpec for IsrSpec {
29    type Ux = u32;
30}
31#[doc = "`read()` method returns [`isr::R`](R) reader structure"]
32impl crate::Readable for IsrSpec {}
33#[doc = "`reset()` method sets ISR to value 0"]
34impl crate::Resettable for IsrSpec {
35    const RESET_VALUE: u32 = 0;
36}