efm32zg210_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>;
24impl R {
25 #[doc = "Bit 0 - Channel 0 Wait on Request Status"]
26 #[inline(always)]
27 pub fn ch0waitstatus(&self) -> CH0WAITSTATUS_R {
28 CH0WAITSTATUS_R::new((self.bits & 1) != 0)
29 }
30 #[doc = "Bit 1 - Channel 1 Wait on Request Status"]
31 #[inline(always)]
32 pub fn ch1waitstatus(&self) -> CH1WAITSTATUS_R {
33 CH1WAITSTATUS_R::new(((self.bits >> 1) & 1) != 0)
34 }
35 #[doc = "Bit 2 - Channel 2 Wait on Request Status"]
36 #[inline(always)]
37 pub fn ch2waitstatus(&self) -> CH2WAITSTATUS_R {
38 CH2WAITSTATUS_R::new(((self.bits >> 2) & 1) != 0)
39 }
40 #[doc = "Bit 3 - Channel 3 Wait on Request Status"]
41 #[inline(always)]
42 pub fn ch3waitstatus(&self) -> CH3WAITSTATUS_R {
43 CH3WAITSTATUS_R::new(((self.bits >> 3) & 1) != 0)
44 }
45}
46#[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"]
47pub struct CHWAITSTATUS_SPEC;
48impl crate::RegisterSpec for CHWAITSTATUS_SPEC {
49 type Ux = u32;
50}
51#[doc = "`read()` method returns [chwaitstatus::R](R) reader structure"]
52impl crate::Readable for CHWAITSTATUS_SPEC {
53 type Reader = R;
54}
55#[doc = "`reset()` method sets CHWAITSTATUS to value 0x0f"]
56impl crate::Resettable for CHWAITSTATUS_SPEC {
57 #[inline(always)]
58 fn reset_value() -> Self::Ux {
59 0x0f
60 }
61}