Struct esp32c3::SYSTEM

source ·
pub struct SYSTEM { /* private fields */ }
Expand description

System Configuration Registers

Implementations§

source§

impl SYSTEM

source

pub const PTR: *const RegisterBlock = {0x600c0000 as *const system::RegisterBlock}

Pointer to the register block

source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

source

pub unsafe fn steal() -> Self

Steal an instance of this peripheral

§Safety

Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.

Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.

Methods from Deref<Target = RegisterBlock>§

source

pub fn cpu_peri_clk_en(&self) -> &CPU_PERI_CLK_EN

0x00 - cpu_peripheral clock gating register

source

pub fn cpu_peri_rst_en(&self) -> &CPU_PERI_RST_EN

0x04 - cpu_peripheral reset register

source

pub fn cpu_per_conf(&self) -> &CPU_PER_CONF

0x08 - cpu clock config register

source

pub fn mem_pd_mask(&self) -> &MEM_PD_MASK

0x0c - memory power down mask register

source

pub fn perip_clk_en0(&self) -> &PERIP_CLK_EN0

0x10 - peripheral clock gating register

source

pub fn perip_clk_en1(&self) -> &PERIP_CLK_EN1

0x14 - peripheral clock gating register

source

pub fn perip_rst_en0(&self) -> &PERIP_RST_EN0

0x18 - reserved

source

pub fn perip_rst_en1(&self) -> &PERIP_RST_EN1

0x1c - peripheral reset register

source

pub fn bt_lpck_div_int(&self) -> &BT_LPCK_DIV_INT

0x20 - clock config register

source

pub fn bt_lpck_div_frac(&self) -> &BT_LPCK_DIV_FRAC

0x24 - clock config register

source

pub fn cpu_intr_from_cpu_0(&self) -> &CPU_INTR_FROM_CPU_0

0x28 - interrupt generate register

source

pub fn cpu_intr_from_cpu_1(&self) -> &CPU_INTR_FROM_CPU_1

0x2c - interrupt generate register

source

pub fn cpu_intr_from_cpu_2(&self) -> &CPU_INTR_FROM_CPU_2

0x30 - interrupt generate register

source

pub fn cpu_intr_from_cpu_3(&self) -> &CPU_INTR_FROM_CPU_3

0x34 - interrupt generate register

source

pub fn rsa_pd_ctrl(&self) -> &RSA_PD_CTRL

0x38 - rsa memory power control register

source

pub fn edma_ctrl(&self) -> &EDMA_CTRL

0x3c - EDMA clock and reset register

source

pub fn cache_control(&self) -> &CACHE_CONTROL

0x40 - cache control register

source

pub fn external_device_encrypt_decrypt_control( &self ) -> &EXTERNAL_DEVICE_ENCRYPT_DECRYPT_CONTROL

0x44 - SYSTEM_EXTERNAL_DEVICE_ENCRYPT_DECRYPT_CONTROL_REG

source

pub fn rtc_fastmem_config(&self) -> &RTC_FASTMEM_CONFIG

0x48 - fast memory config register

source

pub fn rtc_fastmem_crc(&self) -> &RTC_FASTMEM_CRC

0x4c - reserved

source

pub fn redundant_eco_ctrl(&self) -> &REDUNDANT_ECO_CTRL

0x50 - eco register

source

pub fn clock_gate(&self) -> &CLOCK_GATE

0x54 - clock gating register

source

pub fn sysclk_conf(&self) -> &SYSCLK_CONF

0x58 - system clock config register

source

pub fn mem_pvt(&self) -> &MEM_PVT

0x5c - mem pvt register

source

pub fn comb_pvt_lvt_conf(&self) -> &COMB_PVT_LVT_CONF

0x60 - mem pvt register

source

pub fn comb_pvt_nvt_conf(&self) -> &COMB_PVT_NVT_CONF

0x64 - mem pvt register

source

pub fn comb_pvt_hvt_conf(&self) -> &COMB_PVT_HVT_CONF

0x68 - mem pvt register

source

pub fn comb_pvt_err_lvt_site0(&self) -> &COMB_PVT_ERR_LVT_SITE0

0x6c - mem pvt register

source

pub fn comb_pvt_err_nvt_site0(&self) -> &COMB_PVT_ERR_NVT_SITE0

0x70 - mem pvt register

source

pub fn comb_pvt_err_hvt_site0(&self) -> &COMB_PVT_ERR_HVT_SITE0

0x74 - mem pvt register

source

pub fn comb_pvt_err_lvt_site1(&self) -> &COMB_PVT_ERR_LVT_SITE1

0x78 - mem pvt register

source

pub fn comb_pvt_err_nvt_site1(&self) -> &COMB_PVT_ERR_NVT_SITE1

0x7c - mem pvt register

source

pub fn comb_pvt_err_hvt_site1(&self) -> &COMB_PVT_ERR_HVT_SITE1

0x80 - mem pvt register

source

pub fn comb_pvt_err_lvt_site2(&self) -> &COMB_PVT_ERR_LVT_SITE2

0x84 - mem pvt register

source

pub fn comb_pvt_err_nvt_site2(&self) -> &COMB_PVT_ERR_NVT_SITE2

0x88 - mem pvt register

source

pub fn comb_pvt_err_hvt_site2(&self) -> &COMB_PVT_ERR_HVT_SITE2

0x8c - mem pvt register

source

pub fn comb_pvt_err_lvt_site3(&self) -> &COMB_PVT_ERR_LVT_SITE3

0x90 - mem pvt register

source

pub fn comb_pvt_err_nvt_site3(&self) -> &COMB_PVT_ERR_NVT_SITE3

0x94 - mem pvt register

source

pub fn comb_pvt_err_hvt_site3(&self) -> &COMB_PVT_ERR_HVT_SITE3

0x98 - mem pvt register

source

pub fn system_reg_date(&self) -> &SYSTEM_REG_DATE

0xffc - Version register

Trait Implementations§

source§

impl Debug for SYSTEM

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Deref for SYSTEM

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl Send for SYSTEM

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.