esp32c6/
atomic.rs

1#[repr(C)]
2#[cfg_attr(feature = "impl-register-debug", derive(Debug))]
3#[doc = "Register block"]
4pub struct RegisterBlock {
5    addr_lock: ADDR_LOCK,
6    lr_addr: LR_ADDR,
7    lr_value: LR_VALUE,
8    lock_status: LOCK_STATUS,
9    counter: COUNTER,
10}
11impl RegisterBlock {
12    #[doc = "0x00 - hardware lock regsiter"]
13    #[inline(always)]
14    pub const fn addr_lock(&self) -> &ADDR_LOCK {
15        &self.addr_lock
16    }
17    #[doc = "0x04 - gloable lr address regsiter"]
18    #[inline(always)]
19    pub const fn lr_addr(&self) -> &LR_ADDR {
20        &self.lr_addr
21    }
22    #[doc = "0x08 - gloable lr value regsiter"]
23    #[inline(always)]
24    pub const fn lr_value(&self) -> &LR_VALUE {
25        &self.lr_value
26    }
27    #[doc = "0x0c - lock status regsiter"]
28    #[inline(always)]
29    pub const fn lock_status(&self) -> &LOCK_STATUS {
30        &self.lock_status
31    }
32    #[doc = "0x10 - wait counter register"]
33    #[inline(always)]
34    pub const fn counter(&self) -> &COUNTER {
35        &self.counter
36    }
37}
38#[doc = "ADDR_LOCK (rw) register accessor: hardware lock regsiter\n\nYou can [`read`](crate::Reg::read) this register and get [`addr_lock::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`addr_lock::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@addr_lock`] module"]
39pub type ADDR_LOCK = crate::Reg<addr_lock::ADDR_LOCK_SPEC>;
40#[doc = "hardware lock regsiter"]
41pub mod addr_lock;
42#[doc = "LR_ADDR (rw) register accessor: gloable lr address regsiter\n\nYou can [`read`](crate::Reg::read) this register and get [`lr_addr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lr_addr::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@lr_addr`] module"]
43pub type LR_ADDR = crate::Reg<lr_addr::LR_ADDR_SPEC>;
44#[doc = "gloable lr address regsiter"]
45pub mod lr_addr;
46#[doc = "LR_VALUE (rw) register accessor: gloable lr value regsiter\n\nYou can [`read`](crate::Reg::read) this register and get [`lr_value::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lr_value::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@lr_value`] module"]
47pub type LR_VALUE = crate::Reg<lr_value::LR_VALUE_SPEC>;
48#[doc = "gloable lr value regsiter"]
49pub mod lr_value;
50#[doc = "LOCK_STATUS (r) register accessor: lock status regsiter\n\nYou can [`read`](crate::Reg::read) this register and get [`lock_status::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@lock_status`] module"]
51pub type LOCK_STATUS = crate::Reg<lock_status::LOCK_STATUS_SPEC>;
52#[doc = "lock status regsiter"]
53pub mod lock_status;
54#[doc = "COUNTER (rw) register accessor: wait counter register\n\nYou can [`read`](crate::Reg::read) this register and get [`counter::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`counter::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@counter`] module"]
55pub type COUNTER = crate::Reg<counter::COUNTER_SPEC>;
56#[doc = "wait counter register"]
57pub mod counter;