atsam3s8c/crccu/
dma_sr.rs

1#[doc = "Register `DMA_SR` reader"]
2pub type R = crate::R<DmaSrSpec>;
3#[doc = "Field `DMASR` reader - DMA Status Register"]
4pub type DmasrR = crate::BitReader;
5impl R {
6    #[doc = "Bit 0 - DMA Status Register"]
7    #[inline(always)]
8    pub fn dmasr(&self) -> DmasrR {
9        DmasrR::new((self.bits & 1) != 0)
10    }
11}
12#[doc = "CRCCU DMA Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`dma_sr::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
13pub struct DmaSrSpec;
14impl crate::RegisterSpec for DmaSrSpec {
15    type Ux = u32;
16}
17#[doc = "`read()` method returns [`dma_sr::R`](R) reader structure"]
18impl crate::Readable for DmaSrSpec {}
19#[doc = "`reset()` method sets DMA_SR to value 0"]
20impl crate::Resettable for DmaSrSpec {
21    const RESET_VALUE: u32 = 0;
22}