efm32hg309_pac/dma/
chwaitstatus.rs1#[doc = "Register `CHWAITSTATUS` reader"]
2pub struct R(crate::R<CHWAITSTATUS_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<CHWAITSTATUS_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<CHWAITSTATUS_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<CHWAITSTATUS_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Field `CH0WAITSTATUS` reader - Channel 0 Wait on Request Status"]
17pub type CH0WAITSTATUS_R = crate::BitReader<bool>;
18#[doc = "Field `CH1WAITSTATUS` reader - Channel 1 Wait on Request Status"]
19pub type CH1WAITSTATUS_R = crate::BitReader<bool>;
20#[doc = "Field `CH2WAITSTATUS` reader - Channel 2 Wait on Request Status"]
21pub type CH2WAITSTATUS_R = crate::BitReader<bool>;
22#[doc = "Field `CH3WAITSTATUS` reader - Channel 3 Wait on Request Status"]
23pub type CH3WAITSTATUS_R = crate::BitReader<bool>;
24#[doc = "Field `CH4WAITSTATUS` reader - Channel 4 Wait on Request Status"]
25pub type CH4WAITSTATUS_R = crate::BitReader<bool>;
26#[doc = "Field `CH5WAITSTATUS` reader - Channel 5 Wait on Request Status"]
27pub type CH5WAITSTATUS_R = crate::BitReader<bool>;
28impl R {
29 #[doc = "Bit 0 - Channel 0 Wait on Request Status"]
30 #[inline(always)]
31 pub fn ch0waitstatus(&self) -> CH0WAITSTATUS_R {
32 CH0WAITSTATUS_R::new((self.bits & 1) != 0)
33 }
34 #[doc = "Bit 1 - Channel 1 Wait on Request Status"]
35 #[inline(always)]
36 pub fn ch1waitstatus(&self) -> CH1WAITSTATUS_R {
37 CH1WAITSTATUS_R::new(((self.bits >> 1) & 1) != 0)
38 }
39 #[doc = "Bit 2 - Channel 2 Wait on Request Status"]
40 #[inline(always)]
41 pub fn ch2waitstatus(&self) -> CH2WAITSTATUS_R {
42 CH2WAITSTATUS_R::new(((self.bits >> 2) & 1) != 0)
43 }
44 #[doc = "Bit 3 - Channel 3 Wait on Request Status"]
45 #[inline(always)]
46 pub fn ch3waitstatus(&self) -> CH3WAITSTATUS_R {
47 CH3WAITSTATUS_R::new(((self.bits >> 3) & 1) != 0)
48 }
49 #[doc = "Bit 4 - Channel 4 Wait on Request Status"]
50 #[inline(always)]
51 pub fn ch4waitstatus(&self) -> CH4WAITSTATUS_R {
52 CH4WAITSTATUS_R::new(((self.bits >> 4) & 1) != 0)
53 }
54 #[doc = "Bit 5 - Channel 5 Wait on Request Status"]
55 #[inline(always)]
56 pub fn ch5waitstatus(&self) -> CH5WAITSTATUS_R {
57 CH5WAITSTATUS_R::new(((self.bits >> 5) & 1) != 0)
58 }
59}
60#[doc = "Channel Wait on Request Status Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [chwaitstatus](index.html) module"]
61pub struct CHWAITSTATUS_SPEC;
62impl crate::RegisterSpec for CHWAITSTATUS_SPEC {
63 type Ux = u32;
64}
65#[doc = "`read()` method returns [chwaitstatus::R](R) reader structure"]
66impl crate::Readable for CHWAITSTATUS_SPEC {
67 type Reader = R;
68}
69#[doc = "`reset()` method sets CHWAITSTATUS to value 0x3f"]
70impl crate::Resettable for CHWAITSTATUS_SPEC {
71 #[inline(always)]
72 fn reset_value() -> Self::Ux {
73 0x3f
74 }
75}