bl61x_pac/
mcu_misc.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    mcu_bus_cfg0: MCU_BUS_CFG0,
5    mcu_bus_cfg1: MCU_BUS_CFG1,
6    _reserved2: [u8; 0x0c],
7    mcu_e907_rtc: MCU_E907_RTC,
8    _reserved3: [u8; 0xe8],
9    mcu_cfg1: MCU_CFG1,
10    _reserved4: [u8; 0x0c],
11    mcu1_log1: MCU1_LOG1,
12    mcu1_log2: MCU1_LOG2,
13    mcu1_log3: MCU1_LOG3,
14    mcu1_log4: MCU1_LOG4,
15    mcu1_log5: MCU1_LOG5,
16    _reserved9: [u8; 0xdc],
17    cpu_mbist: CPU_MBIST,
18    _reserved10: [u8; 0x04],
19    irom1_misr_dataout_0: IROM1_MISR_DATAOUT_0,
20    irom1_misr_dataout_1: IROM1_MISR_DATAOUT_1,
21}
22impl RegisterBlock {
23    #[doc = "0x00 - MCU Bus Configuration 0 Register. Controls MCU bus configuration settings."]
24    #[inline(always)]
25    pub const fn mcu_bus_cfg0(&self) -> &MCU_BUS_CFG0 {
26        &self.mcu_bus_cfg0
27    }
28    #[doc = "0x04 - MCU Bus Configuration 1 Register. Controls MCU bus configuration settings."]
29    #[inline(always)]
30    pub const fn mcu_bus_cfg1(&self) -> &MCU_BUS_CFG1 {
31        &self.mcu_bus_cfg1
32    }
33    #[doc = "0x14 - MCU E907 RTC Register. Controls the E907 RTC settings."]
34    #[inline(always)]
35    pub const fn mcu_e907_rtc(&self) -> &MCU_E907_RTC {
36        &self.mcu_e907_rtc
37    }
38    #[doc = "0x100 - MCU Configuration 1 Register. Controls miscellaneous MCU settings."]
39    #[inline(always)]
40    pub const fn mcu_cfg1(&self) -> &MCU_CFG1 {
41        &self.mcu_cfg1
42    }
43    #[doc = "0x110 - MCU1 Log 1 Register. Stores information about the last MCU1 exception."]
44    #[inline(always)]
45    pub const fn mcu1_log1(&self) -> &MCU1_LOG1 {
46        &self.mcu1_log1
47    }
48    #[doc = "0x114 - MCU1 Log 2 Register. Stores information about the last MCU1 interrupt."]
49    #[inline(always)]
50    pub const fn mcu1_log2(&self) -> &MCU1_LOG2 {
51        &self.mcu1_log2
52    }
53    #[doc = "0x118 - MCU1 Log 3 Register. Stores information about the last MCU1 machine status."]
54    #[inline(always)]
55    pub const fn mcu1_log3(&self) -> &MCU1_LOG3 {
56        &self.mcu1_log3
57    }
58    #[doc = "0x11c - MCU1 Log 4 Register. Stores information about the last MCU1 program counter."]
59    #[inline(always)]
60    pub const fn mcu1_log4(&self) -> &MCU1_LOG4 {
61        &self.mcu1_log4
62    }
63    #[doc = "0x120 - MCU1 Log 5 Register. Stores information about the last MCU1 lockup and halt status."]
64    #[inline(always)]
65    pub const fn mcu1_log5(&self) -> &MCU1_LOG5 {
66        &self.mcu1_log5
67    }
68    #[doc = "0x200 - CPU MBIST Register. Controls the CPU memory built-in self-test (MBIST)."]
69    #[inline(always)]
70    pub const fn cpu_mbist(&self) -> &CPU_MBIST {
71        &self.cpu_mbist
72    }
73    #[doc = "0x208 - IROM1 MISR Data Out 0 Register. Stores the MISR data output for IROM1."]
74    #[inline(always)]
75    pub const fn irom1_misr_dataout_0(&self) -> &IROM1_MISR_DATAOUT_0 {
76        &self.irom1_misr_dataout_0
77    }
78    #[doc = "0x20c - IROM1 MISR Data Out 1 Register. Stores the MISR data output for IROM1."]
79    #[inline(always)]
80    pub const fn irom1_misr_dataout_1(&self) -> &IROM1_MISR_DATAOUT_1 {
81        &self.irom1_misr_dataout_1
82    }
83}
84#[doc = "mcu_bus_cfg0 (rw) register accessor: MCU Bus Configuration 0 Register. Controls MCU bus configuration settings.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mcu_bus_cfg0::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`mcu_bus_cfg0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mcu_bus_cfg0`]
85module"]
86pub type MCU_BUS_CFG0 = crate::Reg<mcu_bus_cfg0::MCU_BUS_CFG0_SPEC>;
87#[doc = "MCU Bus Configuration 0 Register. Controls MCU bus configuration settings."]
88pub mod mcu_bus_cfg0;
89#[doc = "mcu_bus_cfg1 (rw) register accessor: MCU Bus Configuration 1 Register. Controls MCU bus configuration settings.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mcu_bus_cfg1::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`mcu_bus_cfg1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mcu_bus_cfg1`]
90module"]
91pub type MCU_BUS_CFG1 = crate::Reg<mcu_bus_cfg1::MCU_BUS_CFG1_SPEC>;
92#[doc = "MCU Bus Configuration 1 Register. Controls MCU bus configuration settings."]
93pub mod mcu_bus_cfg1;
94#[doc = "mcu_e907_rtc (rw) register accessor: MCU E907 RTC Register. Controls the E907 RTC settings.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mcu_e907_rtc::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`mcu_e907_rtc::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mcu_e907_rtc`]
95module"]
96pub type MCU_E907_RTC = crate::Reg<mcu_e907_rtc::MCU_E907_RTC_SPEC>;
97#[doc = "MCU E907 RTC Register. Controls the E907 RTC settings."]
98pub mod mcu_e907_rtc;
99#[doc = "mcu_cfg1 (rw) register accessor: MCU Configuration 1 Register. Controls miscellaneous MCU settings.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mcu_cfg1::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`mcu_cfg1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mcu_cfg1`]
100module"]
101pub type MCU_CFG1 = crate::Reg<mcu_cfg1::MCU_CFG1_SPEC>;
102#[doc = "MCU Configuration 1 Register. Controls miscellaneous MCU settings."]
103pub mod mcu_cfg1;
104#[doc = "mcu1_log1 (rw) register accessor: MCU1 Log 1 Register. Stores information about the last MCU1 exception.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mcu1_log1::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`mcu1_log1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mcu1_log1`]
105module"]
106pub type MCU1_LOG1 = crate::Reg<mcu1_log1::MCU1_LOG1_SPEC>;
107#[doc = "MCU1 Log 1 Register. Stores information about the last MCU1 exception."]
108pub mod mcu1_log1;
109#[doc = "mcu1_log2 (rw) register accessor: MCU1 Log 2 Register. Stores information about the last MCU1 interrupt.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mcu1_log2::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`mcu1_log2::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mcu1_log2`]
110module"]
111pub type MCU1_LOG2 = crate::Reg<mcu1_log2::MCU1_LOG2_SPEC>;
112#[doc = "MCU1 Log 2 Register. Stores information about the last MCU1 interrupt."]
113pub mod mcu1_log2;
114#[doc = "mcu1_log3 (rw) register accessor: MCU1 Log 3 Register. Stores information about the last MCU1 machine status.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mcu1_log3::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`mcu1_log3::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mcu1_log3`]
115module"]
116pub type MCU1_LOG3 = crate::Reg<mcu1_log3::MCU1_LOG3_SPEC>;
117#[doc = "MCU1 Log 3 Register. Stores information about the last MCU1 machine status."]
118pub mod mcu1_log3;
119#[doc = "mcu1_log4 (rw) register accessor: MCU1 Log 4 Register. Stores information about the last MCU1 program counter.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mcu1_log4::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`mcu1_log4::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mcu1_log4`]
120module"]
121pub type MCU1_LOG4 = crate::Reg<mcu1_log4::MCU1_LOG4_SPEC>;
122#[doc = "MCU1 Log 4 Register. Stores information about the last MCU1 program counter."]
123pub mod mcu1_log4;
124#[doc = "mcu1_log5 (rw) register accessor: MCU1 Log 5 Register. Stores information about the last MCU1 lockup and halt status.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mcu1_log5::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`mcu1_log5::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mcu1_log5`]
125module"]
126pub type MCU1_LOG5 = crate::Reg<mcu1_log5::MCU1_LOG5_SPEC>;
127#[doc = "MCU1 Log 5 Register. Stores information about the last MCU1 lockup and halt status."]
128pub mod mcu1_log5;
129#[doc = "cpu_mbist (rw) register accessor: CPU MBIST Register. Controls the CPU memory built-in self-test (MBIST).\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`cpu_mbist::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cpu_mbist::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cpu_mbist`]
130module"]
131pub type CPU_MBIST = crate::Reg<cpu_mbist::CPU_MBIST_SPEC>;
132#[doc = "CPU MBIST Register. Controls the CPU memory built-in self-test (MBIST)."]
133pub mod cpu_mbist;
134#[doc = "irom1_misr_dataout_0 (rw) register accessor: IROM1 MISR Data Out 0 Register. Stores the MISR data output for IROM1.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`irom1_misr_dataout_0::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`irom1_misr_dataout_0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@irom1_misr_dataout_0`]
135module"]
136pub type IROM1_MISR_DATAOUT_0 = crate::Reg<irom1_misr_dataout_0::IROM1_MISR_DATAOUT_0_SPEC>;
137#[doc = "IROM1 MISR Data Out 0 Register. Stores the MISR data output for IROM1."]
138pub mod irom1_misr_dataout_0;
139#[doc = "irom1_misr_dataout_1 (rw) register accessor: IROM1 MISR Data Out 1 Register. Stores the MISR data output for IROM1.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`irom1_misr_dataout_1::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`irom1_misr_dataout_1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@irom1_misr_dataout_1`]
140module"]
141pub type IROM1_MISR_DATAOUT_1 = crate::Reg<irom1_misr_dataout_1::IROM1_MISR_DATAOUT_1_SPEC>;
142#[doc = "IROM1 MISR Data Out 1 Register. Stores the MISR data output for IROM1."]
143pub mod irom1_misr_dataout_1;