Struct esp32s2::EFUSE

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

eFuse Controller

Implementations§

source§

impl EFUSE

source

pub const PTR: *const RegisterBlock = {0x3f41a000 as *const efuse::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 pgm_data(&self, n: usize) -> &PGM_DATA

0x00..0x20 - Register %s that stores data to be programmed.

source

pub fn pgm_data_iter(&self) -> impl Iterator<Item = &PGM_DATA>

Iterator for array of: 0x00..0x20 - Register %s that stores data to be programmed.

source

pub fn pgm_check_value(&self, n: usize) -> &PGM_CHECK_VALUE

0x20..0x2c - Register %s that stores the RS code to be programmed.

source

pub fn pgm_check_value_iter(&self) -> impl Iterator<Item = &PGM_CHECK_VALUE>

Iterator for array of: 0x20..0x2c - Register %s that stores the RS code to be programmed.

source

pub fn rd_wr_dis(&self) -> &RD_WR_DIS

0x2c - Register 0 of BLOCK0.

source

pub fn rd_repeat_data0(&self) -> &RD_REPEAT_DATA0

0x30 - Register 1 of BLOCK0.

source

pub fn rd_repeat_data1(&self) -> &RD_REPEAT_DATA1

0x34 - Register 2 of BLOCK0.

source

pub fn rd_repeat_data2(&self) -> &RD_REPEAT_DATA2

0x38 - Register 3 of BLOCK0.

source

pub fn rd_repeat_data3(&self) -> &RD_REPEAT_DATA3

0x3c - Register 4 of BLOCK0.

source

pub fn rd_repeat_data4(&self) -> &RD_REPEAT_DATA4

0x40 - Register 5 of BLOCK0.

source

pub fn rd_mac_spi_sys_0(&self) -> &RD_MAC_SPI_SYS_0

0x44 - Register 0 of BLOCK1.

source

pub fn rd_mac_spi_sys_1(&self) -> &RD_MAC_SPI_SYS_1

0x48 - Register 1 of BLOCK1.

source

pub fn rd_mac_spi_sys_2(&self) -> &RD_MAC_SPI_SYS_2

0x4c - Register 2 of BLOCK1.

source

pub fn rd_mac_spi_sys_3(&self) -> &RD_MAC_SPI_SYS_3

0x50 - Register 3 of BLOCK1.

source

pub fn rd_mac_spi_sys_4(&self) -> &RD_MAC_SPI_SYS_4

0x54 - Register 4 of BLOCK1.

source

pub fn rd_mac_spi_sys_5(&self) -> &RD_MAC_SPI_SYS_5

0x58 - Register 5 of BLOCK1.

source

pub fn rd_sys_data_part1_(&self, n: usize) -> &RD_SYS_DATA_PART1_

0x5c..0x7c - Register %s of BLOCK2 (system).

source

pub fn rd_sys_data_part1__iter( &self ) -> impl Iterator<Item = &RD_SYS_DATA_PART1_>

Iterator for array of: 0x5c..0x7c - Register %s of BLOCK2 (system).

source

pub fn rd_usr_data(&self, n: usize) -> &RD_USR_DATA

0x7c..0x9c - Register %s of BLOCK3 (user).

source

pub fn rd_usr_data_iter(&self) -> impl Iterator<Item = &RD_USR_DATA>

Iterator for array of: 0x7c..0x9c - Register %s of BLOCK3 (user).

source

pub fn rd_key0_data(&self, n: usize) -> &RD_KEY0_DATA

0x9c..0xbc - Register %s of BLOCK4 (KEY0).

source

pub fn rd_key0_data_iter(&self) -> impl Iterator<Item = &RD_KEY0_DATA>

Iterator for array of: 0x9c..0xbc - Register %s of BLOCK4 (KEY0).

source

pub fn rd_key1_data(&self, n: usize) -> &RD_KEY1_DATA

0xbc..0xdc - Register %s of BLOCK5 (KEY1).

source

pub fn rd_key1_data_iter(&self) -> impl Iterator<Item = &RD_KEY1_DATA>

Iterator for array of: 0xbc..0xdc - Register %s of BLOCK5 (KEY1).

source

pub fn rd_key2_data(&self, n: usize) -> &RD_KEY2_DATA

0xdc..0xfc - Register %s of BLOCK6 (KEY2).

source

pub fn rd_key2_data_iter(&self) -> impl Iterator<Item = &RD_KEY2_DATA>

Iterator for array of: 0xdc..0xfc - Register %s of BLOCK6 (KEY2).

source

pub fn rd_key3_data(&self, n: usize) -> &RD_KEY3_DATA

0xfc..0x11c - Register %s of BLOCK7 (KEY3).

source

pub fn rd_key3_data_iter(&self) -> impl Iterator<Item = &RD_KEY3_DATA>

Iterator for array of: 0xfc..0x11c - Register %s of BLOCK7 (KEY3).

source

pub fn rd_key4_data(&self, n: usize) -> &RD_KEY4_DATA

0x11c..0x13c - Register %s of BLOCK8 (KEY4).

source

pub fn rd_key4_data_iter(&self) -> impl Iterator<Item = &RD_KEY4_DATA>

Iterator for array of: 0x11c..0x13c - Register %s of BLOCK8 (KEY4).

source

pub fn rd_key5_data(&self, n: usize) -> &RD_KEY5_DATA

0x13c..0x15c - Register %s of BLOCK9 (KEY5).

source

pub fn rd_key5_data_iter(&self) -> impl Iterator<Item = &RD_KEY5_DATA>

Iterator for array of: 0x13c..0x15c - Register %s of BLOCK9 (KEY5).

source

pub fn rd_sys_data_part2_(&self, n: usize) -> &RD_SYS_DATA_PART2_

0x15c..0x17c - Register %s of BLOCK10 (system).

source

pub fn rd_sys_data_part2__iter( &self ) -> impl Iterator<Item = &RD_SYS_DATA_PART2_>

Iterator for array of: 0x15c..0x17c - Register %s of BLOCK10 (system).

source

pub fn rd_repeat_err0(&self) -> &RD_REPEAT_ERR0

0x17c - Programming error record register 0 of BLOCK0.

source

pub fn rd_repeat_err1(&self) -> &RD_REPEAT_ERR1

0x180 - Programming error record register 1 of BLOCK0.

source

pub fn rd_repeat_err2(&self) -> &RD_REPEAT_ERR2

0x184 - Programming error record register 2 of BLOCK0.

source

pub fn rd_repeat_err3(&self) -> &RD_REPEAT_ERR3

0x188 - Programming error record register 3 of BLOCK0.

source

pub fn rd_repeat_err4(&self) -> &RD_REPEAT_ERR4

0x190 - Programming error record register 4 of BLOCK0.

source

pub fn rd_rs_err0(&self) -> &RD_RS_ERR0

0x1c0 - Programming error record register 0 of BLOCK1-10.

source

pub fn rd_rs_err1(&self) -> &RD_RS_ERR1

0x1c4 - Programming error record register 1 of BLOCK1-10.

source

pub fn clk(&self) -> &CLK

0x1c8 - eFuse clock configuration register.

source

pub fn conf(&self) -> &CONF

0x1cc - eFuse operation mode configuration register.

source

pub fn status(&self) -> &STATUS

0x1d0 - eFuse status register.

source

pub fn cmd(&self) -> &CMD

0x1d4 - eFuse command register.

source

pub fn int_raw(&self) -> &INT_RAW

0x1d8 - eFuse raw interrupt register.

source

pub fn int_st(&self) -> &INT_ST

0x1dc - eFuse interrupt status register.

source

pub fn int_ena(&self) -> &INT_ENA

0x1e0 - eFuse interrupt enable register.

source

pub fn int_clr(&self) -> &INT_CLR

0x1e4 - eFuse interrupt clear register.

source

pub fn dac_conf(&self) -> &DAC_CONF

0x1e8 - Controls the eFuse programming voltage.

source

pub fn rd_tim_conf(&self) -> &RD_TIM_CONF

0x1ec - Configures read timing parameters.

source

pub fn wr_tim_conf0(&self) -> &WR_TIM_CONF0

0x1f0 - Configuration register 0 of eFuse programming timing parameters.

source

pub fn wr_tim_conf1(&self) -> &WR_TIM_CONF1

0x1f4 - Configuration register 1 of eFuse programming timing parameters.

source

pub fn wr_tim_conf2(&self) -> &WR_TIM_CONF2

0x1f8 - Configuration register 2 of eFuse programming timing parameters.

source

pub fn date(&self) -> &DATE

0x1fc - Version control register.

Trait Implementations§

source§

impl Debug for EFUSE

source§

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

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

impl Deref for EFUSE

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl Send for EFUSE

Auto Trait Implementations§

§

impl RefUnwindSafe for EFUSE

§

impl !Sync for EFUSE

§

impl Unpin for EFUSE

§

impl UnwindSafe for EFUSE

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.