esp32/
flash_encryption.rs

1#[repr(C)]
2#[cfg_attr(feature = "impl-register-debug", derive(Debug))]
3#[doc = "Register block"]
4pub struct RegisterBlock {
5    buffer_: [BUFFER_; 8],
6    start: START,
7    address: ADDRESS,
8    done: DONE,
9}
10impl RegisterBlock {
11    #[doc = "0x00..0x20 - "]
12    #[inline(always)]
13    pub const fn buffer_(&self, n: usize) -> &BUFFER_ {
14        &self.buffer_[n]
15    }
16    #[doc = "Iterator for array of:"]
17    #[doc = "0x00..0x20 - "]
18    #[inline(always)]
19    pub fn buffer__iter(&self) -> impl Iterator<Item = &BUFFER_> {
20        self.buffer_.iter()
21    }
22    #[doc = "0x20 - "]
23    #[inline(always)]
24    pub const fn start(&self) -> &START {
25        &self.start
26    }
27    #[doc = "0x24 - "]
28    #[inline(always)]
29    pub const fn address(&self) -> &ADDRESS {
30        &self.address
31    }
32    #[doc = "0x28 - "]
33    #[inline(always)]
34    pub const fn done(&self) -> &DONE {
35        &self.done
36    }
37}
38#[doc = "BUFFER_ (w) register accessor: \n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`buffer_::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@buffer_`] module"]
39pub type BUFFER_ = crate::Reg<buffer_::BUFFER__SPEC>;
40#[doc = ""]
41pub mod buffer_;
42#[doc = "START (w) register accessor: \n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`start::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@start`] module"]
43pub type START = crate::Reg<start::START_SPEC>;
44#[doc = ""]
45pub mod start;
46#[doc = "ADDRESS (w) register accessor: \n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`address::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@address`] module"]
47pub type ADDRESS = crate::Reg<address::ADDRESS_SPEC>;
48#[doc = ""]
49pub mod address;
50#[doc = "DONE (r) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`done::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@done`] module"]
51pub type DONE = crate::Reg<done::DONE_SPEC>;
52#[doc = ""]
53pub mod done;