esp32c6_lp/
lp_tee.rs

1#[repr(C)]
2#[cfg_attr(feature = "impl-register-debug", derive(Debug))]
3#[doc = "Register block"]
4pub struct RegisterBlock {
5    m_mode_ctrl: [M_MODE_CTRL; 1],
6    clock_gate: CLOCK_GATE,
7    _reserved2: [u8; 0x88],
8    force_acc_hp: FORCE_ACC_HP,
9    _reserved3: [u8; 0x68],
10    date: DATE,
11}
12impl RegisterBlock {
13    #[doc = "0x00 - Tee mode control register"]
14    #[inline(always)]
15    pub const fn m_mode_ctrl(&self, n: usize) -> &M_MODE_CTRL {
16        &self.m_mode_ctrl[n]
17    }
18    #[doc = "Iterator for array of:"]
19    #[doc = "0x00 - Tee mode control register"]
20    #[inline(always)]
21    pub fn m_mode_ctrl_iter(&self) -> impl Iterator<Item = &M_MODE_CTRL> {
22        self.m_mode_ctrl.iter()
23    }
24    #[doc = "0x00 - Tee mode control register"]
25    #[inline(always)]
26    pub const fn m0_mode_ctrl(&self) -> &M_MODE_CTRL {
27        self.m_mode_ctrl(0)
28    }
29    #[doc = "0x04 - Clock gating register"]
30    #[inline(always)]
31    pub const fn clock_gate(&self) -> &CLOCK_GATE {
32        &self.clock_gate
33    }
34    #[doc = "0x90 - need_des"]
35    #[inline(always)]
36    pub const fn force_acc_hp(&self) -> &FORCE_ACC_HP {
37        &self.force_acc_hp
38    }
39    #[doc = "0xfc - Version register"]
40    #[inline(always)]
41    pub const fn date(&self) -> &DATE {
42        &self.date
43    }
44}
45#[doc = "M_MODE_CTRL (rw) register accessor: Tee mode control register\n\nYou can [`read`](crate::Reg::read) this register and get [`m_mode_ctrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`m_mode_ctrl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@m_mode_ctrl`] module"]
46pub type M_MODE_CTRL = crate::Reg<m_mode_ctrl::M_MODE_CTRL_SPEC>;
47#[doc = "Tee mode control register"]
48pub mod m_mode_ctrl;
49#[doc = "CLOCK_GATE (rw) register accessor: Clock gating register\n\nYou can [`read`](crate::Reg::read) this register and get [`clock_gate::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`clock_gate::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clock_gate`] module"]
50pub type CLOCK_GATE = crate::Reg<clock_gate::CLOCK_GATE_SPEC>;
51#[doc = "Clock gating register"]
52pub mod clock_gate;
53#[doc = "FORCE_ACC_HP (rw) register accessor: need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`force_acc_hp::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`force_acc_hp::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@force_acc_hp`] module"]
54pub type FORCE_ACC_HP = crate::Reg<force_acc_hp::FORCE_ACC_HP_SPEC>;
55#[doc = "need_des"]
56pub mod force_acc_hp;
57#[doc = "DATE (rw) register accessor: Version register\n\nYou can [`read`](crate::Reg::read) this register and get [`date::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`date::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@date`] module"]
58pub type DATE = crate::Reg<date::DATE_SPEC>;
59#[doc = "Version register"]
60pub mod date;