Struct esp32s2::SYSCON

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

SYSCON Peripheral

Implementations§

source§

impl SYSCON

source

pub const PTR: *const RegisterBlock = {0x3f426000 as *const syscon::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 sysclk_conf(&self) -> &SYSCLK_CONF

0x00 -

source

pub fn tick_conf(&self) -> &TICK_CONF

0x04 -

source

pub fn clk_out_en(&self) -> &CLK_OUT_EN

0x08 -

source

pub fn host_inf_sel(&self) -> &HOST_INF_SEL

0x0c -

source

pub fn ext_mem_pms_lock(&self) -> &EXT_MEM_PMS_LOCK

0x10 -

source

pub fn flash_ace0_attr(&self) -> &FLASH_ACE0_ATTR

0x14 -

source

pub fn flash_ace1_attr(&self) -> &FLASH_ACE1_ATTR

0x18 -

source

pub fn flash_ace2_attr(&self) -> &FLASH_ACE2_ATTR

0x1c -

source

pub fn flash_ace3_attr(&self) -> &FLASH_ACE3_ATTR

0x20 -

source

pub fn flash_ace0_addr(&self) -> &FLASH_ACE0_ADDR

0x24 -

source

pub fn flash_ace1_addr(&self) -> &FLASH_ACE1_ADDR

0x28 -

source

pub fn flash_ace2_addr(&self) -> &FLASH_ACE2_ADDR

0x2c -

source

pub fn flash_ace3_addr(&self) -> &FLASH_ACE3_ADDR

0x30 -

source

pub fn flash_ace0_size(&self) -> &FLASH_ACE0_SIZE

0x34 -

source

pub fn flash_ace1_size(&self) -> &FLASH_ACE1_SIZE

0x38 -

source

pub fn flash_ace2_size(&self) -> &FLASH_ACE2_SIZE

0x3c -

source

pub fn flash_ace3_size(&self) -> &FLASH_ACE3_SIZE

0x40 -

source

pub fn sram_ace0_attr(&self) -> &SRAM_ACE0_ATTR

0x44 -

source

pub fn sram_ace1_attr(&self) -> &SRAM_ACE1_ATTR

0x48 -

source

pub fn sram_ace2_attr(&self) -> &SRAM_ACE2_ATTR

0x4c -

source

pub fn sram_ace3_attr(&self) -> &SRAM_ACE3_ATTR

0x50 -

source

pub fn sram_ace0_addr(&self) -> &SRAM_ACE0_ADDR

0x54 -

source

pub fn sram_ace1_addr(&self) -> &SRAM_ACE1_ADDR

0x58 -

source

pub fn sram_ace2_addr(&self) -> &SRAM_ACE2_ADDR

0x5c -

source

pub fn sram_ace3_addr(&self) -> &SRAM_ACE3_ADDR

0x60 -

source

pub fn sram_ace0_size(&self) -> &SRAM_ACE0_SIZE

0x64 -

source

pub fn sram_ace1_size(&self) -> &SRAM_ACE1_SIZE

0x68 -

source

pub fn sram_ace2_size(&self) -> &SRAM_ACE2_SIZE

0x6c -

source

pub fn sram_ace3_size(&self) -> &SRAM_ACE3_SIZE

0x70 -

source

pub fn spi_mem_pms_ctrl(&self) -> &SPI_MEM_PMS_CTRL

0x74 -

source

pub fn spi_mem_reject_addr(&self) -> &SPI_MEM_REJECT_ADDR

0x78 -

source

pub fn sdio_ctrl(&self) -> &SDIO_CTRL

0x7c -

source

pub fn redcy_sig0(&self) -> &REDCY_SIG0

0x80 -

source

pub fn redcy_sig1(&self) -> &REDCY_SIG1

0x84 -

source

pub fn wifi_bb_cfg(&self) -> &WIFI_BB_CFG

0x88 -

source

pub fn wifi_bb_cfg_2(&self) -> &WIFI_BB_CFG_2

0x8c -

source

pub fn wifi_clk_en(&self) -> &WIFI_CLK_EN

0x90 -

source

pub fn wifi_rst_en(&self) -> &WIFI_RST_EN

0x94 -

source

pub fn front_end_mem_pd(&self) -> &FRONT_END_MEM_PD

0x98 -

source

pub fn date(&self) -> &DATE

0x3fc -

Trait Implementations§

source§

impl Debug for SYSCON

source§

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

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

impl Deref for SYSCON

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl Send for SYSCON

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.