xmc4500/gpdma1/
rawdsttran.rs1#[doc = "Register `RAWDSTTRAN` reader"]
2pub type R = crate::R<RAWDSTTRAN_SPEC>;
3#[doc = "Register `RAWDSTTRAN` writer"]
4pub type W = crate::W<RAWDSTTRAN_SPEC>;
5#[doc = "Field `CH0` reader - Raw Interrupt Status for channel 0"]
6pub type CH0_R = crate::BitReader;
7#[doc = "Field `CH0` writer - Raw Interrupt Status for channel 0"]
8pub type CH0_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `CH1` reader - Raw Interrupt Status for channel 1"]
10pub type CH1_R = crate::BitReader;
11#[doc = "Field `CH1` writer - Raw Interrupt Status for channel 1"]
12pub type CH1_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `CH2` reader - Raw Interrupt Status for channel 2"]
14pub type CH2_R = crate::BitReader;
15#[doc = "Field `CH2` writer - Raw Interrupt Status for channel 2"]
16pub type CH2_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `CH3` reader - Raw Interrupt Status for channel 3"]
18pub type CH3_R = crate::BitReader;
19#[doc = "Field `CH3` writer - Raw Interrupt Status for channel 3"]
20pub type CH3_W<'a, REG> = crate::BitWriter<'a, REG>;
21impl R {
22 #[doc = "Bit 0 - Raw Interrupt Status for channel 0"]
23 #[inline(always)]
24 pub fn ch0(&self) -> CH0_R {
25 CH0_R::new((self.bits & 1) != 0)
26 }
27 #[doc = "Bit 1 - Raw Interrupt Status for channel 1"]
28 #[inline(always)]
29 pub fn ch1(&self) -> CH1_R {
30 CH1_R::new(((self.bits >> 1) & 1) != 0)
31 }
32 #[doc = "Bit 2 - Raw Interrupt Status for channel 2"]
33 #[inline(always)]
34 pub fn ch2(&self) -> CH2_R {
35 CH2_R::new(((self.bits >> 2) & 1) != 0)
36 }
37 #[doc = "Bit 3 - Raw Interrupt Status for channel 3"]
38 #[inline(always)]
39 pub fn ch3(&self) -> CH3_R {
40 CH3_R::new(((self.bits >> 3) & 1) != 0)
41 }
42}
43impl W {
44 #[doc = "Bit 0 - Raw Interrupt Status for channel 0"]
45 #[inline(always)]
46 pub fn ch0(&mut self) -> CH0_W<RAWDSTTRAN_SPEC> {
47 CH0_W::new(self, 0)
48 }
49 #[doc = "Bit 1 - Raw Interrupt Status for channel 1"]
50 #[inline(always)]
51 pub fn ch1(&mut self) -> CH1_W<RAWDSTTRAN_SPEC> {
52 CH1_W::new(self, 1)
53 }
54 #[doc = "Bit 2 - Raw Interrupt Status for channel 2"]
55 #[inline(always)]
56 pub fn ch2(&mut self) -> CH2_W<RAWDSTTRAN_SPEC> {
57 CH2_W::new(self, 2)
58 }
59 #[doc = "Bit 3 - Raw Interrupt Status for channel 3"]
60 #[inline(always)]
61 pub fn ch3(&mut self) -> CH3_W<RAWDSTTRAN_SPEC> {
62 CH3_W::new(self, 3)
63 }
64}
65#[doc = "Raw IntBlock Status\n\nYou can [`read`](crate::Reg::read) this register and get [`rawdsttran::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rawdsttran::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
66pub struct RAWDSTTRAN_SPEC;
67impl crate::RegisterSpec for RAWDSTTRAN_SPEC {
68 type Ux = u32;
69}
70#[doc = "`read()` method returns [`rawdsttran::R`](R) reader structure"]
71impl crate::Readable for RAWDSTTRAN_SPEC {}
72#[doc = "`write(|w| ..)` method takes [`rawdsttran::W`](W) writer structure"]
73impl crate::Writable for RAWDSTTRAN_SPEC {
74 type Safety = crate::Unsafe;
75 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
76 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
77}
78#[doc = "`reset()` method sets RAWDSTTRAN to value 0"]
79impl crate::Resettable for RAWDSTTRAN_SPEC {
80 const RESET_VALUE: u32 = 0;
81}