1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#[doc = "Register `CH0STATUS` reader"]
pub struct R(crate::R<CH0STATUS_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<CH0STATUS_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<CH0STATUS_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<CH0STATUS_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Field `MEM_RADDR_EX` reader - reg_mem_raddr_ex_ch0."]
pub type MEM_RADDR_EX_R = crate::FieldReader<u16, u16>;
#[doc = "Field `STATE` reader - reg_state_ch0."]
pub type STATE_R = crate::FieldReader<u8, u8>;
#[doc = "Field `APB_MEM_WADDR` reader - reg_apb_mem_waddr_ch0."]
pub type APB_MEM_WADDR_R = crate::FieldReader<u16, u16>;
#[doc = "Field `APB_MEM_RD_ERR` reader - reg_apb_mem_rd_err_ch0."]
pub type APB_MEM_RD_ERR_R = crate::BitReader<bool>;
#[doc = "Field `MEM_EMPTY` reader - reg_mem_empty_ch0."]
pub type MEM_EMPTY_R = crate::BitReader<bool>;
#[doc = "Field `APB_MEM_WR_ERR` reader - reg_apb_mem_wr_err_ch0."]
pub type APB_MEM_WR_ERR_R = crate::BitReader<bool>;
#[doc = "Field `APB_MEM_RADDR` reader - reg_apb_mem_raddr_ch0."]
pub type APB_MEM_RADDR_R = crate::FieldReader<u8, u8>;
impl R {
#[doc = "Bits 0:8 - reg_mem_raddr_ex_ch0."]
#[inline(always)]
pub fn mem_raddr_ex(&self) -> MEM_RADDR_EX_R {
MEM_RADDR_EX_R::new((self.bits & 0x01ff) as u16)
}
#[doc = "Bits 9:11 - reg_state_ch0."]
#[inline(always)]
pub fn state(&self) -> STATE_R {
STATE_R::new(((self.bits >> 9) & 7) as u8)
}
#[doc = "Bits 12:20 - reg_apb_mem_waddr_ch0."]
#[inline(always)]
pub fn apb_mem_waddr(&self) -> APB_MEM_WADDR_R {
APB_MEM_WADDR_R::new(((self.bits >> 12) & 0x01ff) as u16)
}
#[doc = "Bit 21 - reg_apb_mem_rd_err_ch0."]
#[inline(always)]
pub fn apb_mem_rd_err(&self) -> APB_MEM_RD_ERR_R {
APB_MEM_RD_ERR_R::new(((self.bits >> 21) & 1) != 0)
}
#[doc = "Bit 22 - reg_mem_empty_ch0."]
#[inline(always)]
pub fn mem_empty(&self) -> MEM_EMPTY_R {
MEM_EMPTY_R::new(((self.bits >> 22) & 1) != 0)
}
#[doc = "Bit 23 - reg_apb_mem_wr_err_ch0."]
#[inline(always)]
pub fn apb_mem_wr_err(&self) -> APB_MEM_WR_ERR_R {
APB_MEM_WR_ERR_R::new(((self.bits >> 23) & 1) != 0)
}
#[doc = "Bits 24:31 - reg_apb_mem_raddr_ch0."]
#[inline(always)]
pub fn apb_mem_raddr(&self) -> APB_MEM_RADDR_R {
APB_MEM_RADDR_R::new(((self.bits >> 24) & 0xff) as u8)
}
}
#[doc = "RMT_CH0STATUS_REG.\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 [ch0status](index.html) module"]
pub struct CH0STATUS_SPEC;
impl crate::RegisterSpec for CH0STATUS_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [ch0status::R](R) reader structure"]
impl crate::Readable for CH0STATUS_SPEC {
type Reader = R;
}
#[doc = "`reset()` method sets CH0STATUS to value 0"]
impl crate::Resettable for CH0STATUS_SPEC {
const RESET_VALUE: Self::Ux = 0;
}