xmc4500/gpdma0/
statusdsttran.rs

1#[doc = "Register `STATUSDSTTRAN` reader"]
2pub type R = crate::R<STATUSDSTTRAN_SPEC>;
3#[doc = "Field `CH0` reader - Interrupt Status for channel 0"]
4pub type CH0_R = crate::BitReader;
5#[doc = "Field `CH1` reader - Interrupt Status for channel 1"]
6pub type CH1_R = crate::BitReader;
7#[doc = "Field `CH2` reader - Interrupt Status for channel 2"]
8pub type CH2_R = crate::BitReader;
9#[doc = "Field `CH3` reader - Interrupt Status for channel 3"]
10pub type CH3_R = crate::BitReader;
11#[doc = "Field `CH4` reader - Interrupt Status for channel 4"]
12pub type CH4_R = crate::BitReader;
13#[doc = "Field `CH5` reader - Interrupt Status for channel 5"]
14pub type CH5_R = crate::BitReader;
15#[doc = "Field `CH6` reader - Interrupt Status for channel 6"]
16pub type CH6_R = crate::BitReader;
17#[doc = "Field `CH7` reader - Interrupt Status for channel 7"]
18pub type CH7_R = crate::BitReader;
19impl R {
20    #[doc = "Bit 0 - Interrupt Status for channel 0"]
21    #[inline(always)]
22    pub fn ch0(&self) -> CH0_R {
23        CH0_R::new((self.bits & 1) != 0)
24    }
25    #[doc = "Bit 1 - Interrupt Status for channel 1"]
26    #[inline(always)]
27    pub fn ch1(&self) -> CH1_R {
28        CH1_R::new(((self.bits >> 1) & 1) != 0)
29    }
30    #[doc = "Bit 2 - Interrupt Status for channel 2"]
31    #[inline(always)]
32    pub fn ch2(&self) -> CH2_R {
33        CH2_R::new(((self.bits >> 2) & 1) != 0)
34    }
35    #[doc = "Bit 3 - Interrupt Status for channel 3"]
36    #[inline(always)]
37    pub fn ch3(&self) -> CH3_R {
38        CH3_R::new(((self.bits >> 3) & 1) != 0)
39    }
40    #[doc = "Bit 4 - Interrupt Status for channel 4"]
41    #[inline(always)]
42    pub fn ch4(&self) -> CH4_R {
43        CH4_R::new(((self.bits >> 4) & 1) != 0)
44    }
45    #[doc = "Bit 5 - Interrupt Status for channel 5"]
46    #[inline(always)]
47    pub fn ch5(&self) -> CH5_R {
48        CH5_R::new(((self.bits >> 5) & 1) != 0)
49    }
50    #[doc = "Bit 6 - Interrupt Status for channel 6"]
51    #[inline(always)]
52    pub fn ch6(&self) -> CH6_R {
53        CH6_R::new(((self.bits >> 6) & 1) != 0)
54    }
55    #[doc = "Bit 7 - Interrupt Status for channel 7"]
56    #[inline(always)]
57    pub fn ch7(&self) -> CH7_R {
58        CH7_R::new(((self.bits >> 7) & 1) != 0)
59    }
60}
61#[doc = "IntBlock Status\n\nYou can [`read`](crate::Reg::read) this register and get [`statusdsttran::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
62pub struct STATUSDSTTRAN_SPEC;
63impl crate::RegisterSpec for STATUSDSTTRAN_SPEC {
64    type Ux = u32;
65}
66#[doc = "`read()` method returns [`statusdsttran::R`](R) reader structure"]
67impl crate::Readable for STATUSDSTTRAN_SPEC {}
68#[doc = "`reset()` method sets STATUSDSTTRAN to value 0"]
69impl crate::Resettable for STATUSDSTTRAN_SPEC {
70    const RESET_VALUE: u32 = 0;
71}