xmc4700/gpdma1/
statusint.rs

1#[doc = "Register `STATUSINT` reader"]
2pub type R = crate::R<STATUSINT_SPEC>;
3#[doc = "Field `TFR` reader - OR of the contents of STATUSTFR register"]
4pub type TFR_R = crate::BitReader;
5#[doc = "Field `BLOCK` reader - OR of the contents of STATUSBLOCK register"]
6pub type BLOCK_R = crate::BitReader;
7#[doc = "Field `SRCT` reader - OR of the contents of STATUSSRCTRAN register"]
8pub type SRCT_R = crate::BitReader;
9#[doc = "Field `DSTT` reader - OR of the contents of STATUSDSTTRAN register"]
10pub type DSTT_R = crate::BitReader;
11#[doc = "Field `ERR` reader - OR of the contents of STATUSERR register"]
12pub type ERR_R = crate::BitReader;
13impl R {
14    #[doc = "Bit 0 - OR of the contents of STATUSTFR register"]
15    #[inline(always)]
16    pub fn tfr(&self) -> TFR_R {
17        TFR_R::new((self.bits & 1) != 0)
18    }
19    #[doc = "Bit 1 - OR of the contents of STATUSBLOCK register"]
20    #[inline(always)]
21    pub fn block(&self) -> BLOCK_R {
22        BLOCK_R::new(((self.bits >> 1) & 1) != 0)
23    }
24    #[doc = "Bit 2 - OR of the contents of STATUSSRCTRAN register"]
25    #[inline(always)]
26    pub fn srct(&self) -> SRCT_R {
27        SRCT_R::new(((self.bits >> 2) & 1) != 0)
28    }
29    #[doc = "Bit 3 - OR of the contents of STATUSDSTTRAN register"]
30    #[inline(always)]
31    pub fn dstt(&self) -> DSTT_R {
32        DSTT_R::new(((self.bits >> 3) & 1) != 0)
33    }
34    #[doc = "Bit 4 - OR of the contents of STATUSERR register"]
35    #[inline(always)]
36    pub fn err(&self) -> ERR_R {
37        ERR_R::new(((self.bits >> 4) & 1) != 0)
38    }
39}
40#[doc = "Combined Interrupt Status Register\n\nYou can [`read`](crate::Reg::read) this register and get [`statusint::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
41pub struct STATUSINT_SPEC;
42impl crate::RegisterSpec for STATUSINT_SPEC {
43    type Ux = u32;
44}
45#[doc = "`read()` method returns [`statusint::R`](R) reader structure"]
46impl crate::Readable for STATUSINT_SPEC {}
47#[doc = "`reset()` method sets STATUSINT to value 0"]
48impl crate::Resettable for STATUSINT_SPEC {
49    const RESET_VALUE: u32 = 0;
50}