Struct esp32s3::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 core_1_control_0(&self) -> &CORE_1_CONTROL_0

0x00 - Core0 control regiter 0

source

pub fn core_1_control_1(&self) -> &CORE_1_CONTROL_1

0x04 - Core0 control regiter 1

source

pub fn cpu_peri_clk_en(&self) -> &CPU_PERI_CLK_EN

0x08 - cpu_peripheral clock configuration register

source

pub fn cpu_peri_rst_en(&self) -> &CPU_PERI_RST_EN

0x0c - cpu_peripheral reset configuration regsiter

source

pub fn cpu_per_conf(&self) -> &CPU_PER_CONF

0x10 - cpu peripheral clock configuration register

source

pub fn mem_pd_mask(&self) -> &MEM_PD_MASK

0x14 - memory power down mask configuration register

source

pub fn perip_clk_en0(&self) -> &PERIP_CLK_EN0

0x18 - peripheral clock configuration regsiter 0

source

pub fn perip_clk_en1(&self) -> &PERIP_CLK_EN1

0x1c - peripheral clock configuration regsiter 1

source

pub fn perip_rst_en0(&self) -> &PERIP_RST_EN0

0x20 - peripheral reset configuration register0

source

pub fn perip_rst_en1(&self) -> &PERIP_RST_EN1

0x24 - peripheral reset configuration regsiter 1

source

pub fn bt_lpck_div_int(&self) -> &BT_LPCK_DIV_INT

0x28 - low power clock frequent division factor configuration regsiter

source

pub fn bt_lpck_div_frac(&self) -> &BT_LPCK_DIV_FRAC

0x2c - low power clock configuration register

source

pub fn cpu_intr_from_cpu_0(&self) -> &CPU_INTR_FROM_CPU_0

0x30 - interrupt source register 0

source

pub fn cpu_intr_from_cpu_1(&self) -> &CPU_INTR_FROM_CPU_1

0x34 - interrupt source register 1

source

pub fn cpu_intr_from_cpu_2(&self) -> &CPU_INTR_FROM_CPU_2

0x38 - interrupt source register 2

source

pub fn cpu_intr_from_cpu_3(&self) -> &CPU_INTR_FROM_CPU_3

0x3c - interrupt source register 3

source

pub fn rsa_pd_ctrl(&self) -> &RSA_PD_CTRL

0x40 - rsa memory power control register

source

pub fn edma_ctrl(&self) -> &EDMA_CTRL

0x44 - EDMA control register

source

pub fn cache_control(&self) -> &CACHE_CONTROL

0x48 - Cache control register

source

pub fn external_device_encrypt_decrypt_control( &self, ) -> &EXTERNAL_DEVICE_ENCRYPT_DECRYPT_CONTROL

0x4c - External memory encrypt and decrypt control register

source

pub fn rtc_fastmem_config(&self) -> &RTC_FASTMEM_CONFIG

0x50 - RTC fast memory configuration register

source

pub fn rtc_fastmem_crc(&self) -> &RTC_FASTMEM_CRC

0x54 - RTC fast memory CRC control register

source

pub fn redundant_eco_ctrl(&self) -> &REDUNDANT_ECO_CTRL

0x58 - ******* Description ***********

source

pub fn clock_gate(&self) -> &CLOCK_GATE

0x5c - ******* Description ***********

source

pub fn sysclk_conf(&self) -> &SYSCLK_CONF

0x60 - System clock configuration register.

source

pub fn mem_pvt(&self) -> &MEM_PVT

0x64 - ******* Description ***********

source

pub fn comb_pvt_lvt_conf(&self) -> &COMB_PVT_LVT_CONF

0x68 - ******* Description ***********

source

pub fn comb_pvt_nvt_conf(&self) -> &COMB_PVT_NVT_CONF

0x6c - ******* Description ***********

source

pub fn comb_pvt_hvt_conf(&self) -> &COMB_PVT_HVT_CONF

0x70 - ******* Description ***********

source

pub fn comb_pvt_err_lvt_site0(&self) -> &COMB_PVT_ERR_LVT_SITE0

0x74 - ******* Description ***********

source

pub fn comb_pvt_err_nvt_site0(&self) -> &COMB_PVT_ERR_NVT_SITE0

0x78 - ******* Description ***********

source

pub fn comb_pvt_err_hvt_site0(&self) -> &COMB_PVT_ERR_HVT_SITE0

0x7c - ******* Description ***********

source

pub fn comb_pvt_err_lvt_site1(&self) -> &COMB_PVT_ERR_LVT_SITE1

0x80 - ******* Description ***********

source

pub fn comb_pvt_err_nvt_site1(&self) -> &COMB_PVT_ERR_NVT_SITE1

0x84 - ******* Description ***********

source

pub fn comb_pvt_err_hvt_site1(&self) -> &COMB_PVT_ERR_HVT_SITE1

0x88 - ******* Description ***********

source

pub fn comb_pvt_err_lvt_site2(&self) -> &COMB_PVT_ERR_LVT_SITE2

0x8c - ******* Description ***********

source

pub fn comb_pvt_err_nvt_site2(&self) -> &COMB_PVT_ERR_NVT_SITE2

0x90 - ******* Description ***********

source

pub fn comb_pvt_err_hvt_site2(&self) -> &COMB_PVT_ERR_HVT_SITE2

0x94 - ******* Description ***********

source

pub fn comb_pvt_err_lvt_site3(&self) -> &COMB_PVT_ERR_LVT_SITE3

0x98 - ******* Description ***********

source

pub fn comb_pvt_err_nvt_site3(&self) -> &COMB_PVT_ERR_NVT_SITE3

0x9c - ******* Description ***********

source

pub fn comb_pvt_err_hvt_site3(&self) -> &COMB_PVT_ERR_HVT_SITE3

0xa0 - ******* Description ***********

source

pub fn date(&self) -> &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

source§

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>,

source§

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>,

source§

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.