Struct esp32c3::EFUSE

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

eFuse Controller

Implementations§

source§

impl EFUSE

source

pub const PTR: *const RegisterBlock = {0x60008800 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_data0(&self) -> &PGM_DATA0

0x00 - Register 0 that stores data to be programmed.

source

pub fn pgm_data1(&self) -> &PGM_DATA1

0x04 - Register 1 that stores data to be programmed.

source

pub fn pgm_data2(&self) -> &PGM_DATA2

0x08 - Register 2 that stores data to be programmed.

source

pub fn pgm_data3(&self) -> &PGM_DATA3

0x0c - Register 3 that stores data to be programmed.

source

pub fn pgm_data4(&self) -> &PGM_DATA4

0x10 - Register 4 that stores data to be programmed.

source

pub fn pgm_data5(&self) -> &PGM_DATA5

0x14 - Register 5 that stores data to be programmed.

source

pub fn pgm_data6(&self) -> &PGM_DATA6

0x18 - Register 6 that stores data to be programmed.

source

pub fn pgm_data7(&self) -> &PGM_DATA7

0x1c - Register 7 that stores data to be programmed.

source

pub fn pgm_check_value0(&self) -> &PGM_CHECK_VALUE0

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

source

pub fn pgm_check_value1(&self) -> &PGM_CHECK_VALUE1

0x24 - Register 1 that stores the RS code to be programmed.

source

pub fn pgm_check_value2(&self) -> &PGM_CHECK_VALUE2

0x28 - Register 2 that stores the RS code to be programmed.

source

pub fn rd_wr_dis(&self) -> &RD_WR_DIS

0x2c - BLOCK0 data register 0.

source

pub fn rd_repeat_data0(&self) -> &RD_REPEAT_DATA0

0x30 - BLOCK0 data register 1.

source

pub fn rd_repeat_data1(&self) -> &RD_REPEAT_DATA1

0x34 - BLOCK0 data register 2.

source

pub fn rd_repeat_data2(&self) -> &RD_REPEAT_DATA2

0x38 - BLOCK0 data register 3.

source

pub fn rd_repeat_data3(&self) -> &RD_REPEAT_DATA3

0x3c - BLOCK0 data register 4.

source

pub fn rd_repeat_data4(&self) -> &RD_REPEAT_DATA4

0x40 - BLOCK0 data register 5.

source

pub fn rd_mac_spi_sys_0(&self) -> &RD_MAC_SPI_SYS_0

0x44 - BLOCK1 data register 0.

source

pub fn rd_mac_spi_sys_1(&self) -> &RD_MAC_SPI_SYS_1

0x48 - BLOCK1 data register 1.

source

pub fn rd_mac_spi_sys_2(&self) -> &RD_MAC_SPI_SYS_2

0x4c - BLOCK1 data register 2.

source

pub fn rd_mac_spi_sys_3(&self) -> &RD_MAC_SPI_SYS_3

0x50 - BLOCK1 data register 3.

source

pub fn rd_mac_spi_sys_4(&self) -> &RD_MAC_SPI_SYS_4

0x54 - BLOCK1 data register 4.

source

pub fn rd_mac_spi_sys_5(&self) -> &RD_MAC_SPI_SYS_5

0x58 - BLOCK1 data register 5.

source

pub fn rd_sys_part1_data0(&self) -> &RD_SYS_PART1_DATA0

0x5c - Register 0 of BLOCK2 (system).

source

pub fn rd_sys_part1_data1(&self) -> &RD_SYS_PART1_DATA1

0x60 - Register 1 of BLOCK2 (system).

source

pub fn rd_sys_part1_data2(&self) -> &RD_SYS_PART1_DATA2

0x64 - Register 2 of BLOCK2 (system).

source

pub fn rd_sys_part1_data3(&self) -> &RD_SYS_PART1_DATA3

0x68 - Register 3 of BLOCK2 (system).

source

pub fn rd_sys_part1_data4(&self) -> &RD_SYS_PART1_DATA4

0x6c - Register 4 of BLOCK2 (system).

source

pub fn rd_sys_part1_data5(&self) -> &RD_SYS_PART1_DATA5

0x70 - Register 5 of BLOCK2 (system).

source

pub fn rd_sys_part1_data6(&self) -> &RD_SYS_PART1_DATA6

0x74 - Register 6 of BLOCK2 (system).

source

pub fn rd_sys_part1_data7(&self) -> &RD_SYS_PART1_DATA7

0x78 - Register 7 of BLOCK2 (system).

source

pub fn rd_usr_data0(&self) -> &RD_USR_DATA0

0x7c - Register 0 of BLOCK3 (user).

source

pub fn rd_usr_data1(&self) -> &RD_USR_DATA1

0x80 - Register 1 of BLOCK3 (user).

source

pub fn rd_usr_data2(&self) -> &RD_USR_DATA2

0x84 - Register 2 of BLOCK3 (user).

source

pub fn rd_usr_data3(&self) -> &RD_USR_DATA3

0x88 - Register 3 of BLOCK3 (user).

source

pub fn rd_usr_data4(&self) -> &RD_USR_DATA4

0x8c - Register 4 of BLOCK3 (user).

source

pub fn rd_usr_data5(&self) -> &RD_USR_DATA5

0x90 - Register 5 of BLOCK3 (user).

source

pub fn rd_usr_data6(&self) -> &RD_USR_DATA6

0x94 - Register 6 of BLOCK3 (user).

source

pub fn rd_usr_data7(&self) -> &RD_USR_DATA7

0x98 - Register 7 of BLOCK3 (user).

source

pub fn rd_key0_data0(&self) -> &RD_KEY0_DATA0

0x9c - Register 0 of BLOCK4 (KEY0).

source

pub fn rd_key0_data1(&self) -> &RD_KEY0_DATA1

0xa0 - Register 1 of BLOCK4 (KEY0).

source

pub fn rd_key0_data2(&self) -> &RD_KEY0_DATA2

0xa4 - Register 2 of BLOCK4 (KEY0).

source

pub fn rd_key0_data3(&self) -> &RD_KEY0_DATA3

0xa8 - Register 3 of BLOCK4 (KEY0).

source

pub fn rd_key0_data4(&self) -> &RD_KEY0_DATA4

0xac - Register 4 of BLOCK4 (KEY0).

source

pub fn rd_key0_data5(&self) -> &RD_KEY0_DATA5

0xb0 - Register 5 of BLOCK4 (KEY0).

source

pub fn rd_key0_data6(&self) -> &RD_KEY0_DATA6

0xb4 - Register 6 of BLOCK4 (KEY0).

source

pub fn rd_key0_data7(&self) -> &RD_KEY0_DATA7

0xb8 - Register 7 of BLOCK4 (KEY0).

source

pub fn rd_key1_data0(&self) -> &RD_KEY1_DATA0

0xbc - Register 0 of BLOCK5 (KEY1).

source

pub fn rd_key1_data1(&self) -> &RD_KEY1_DATA1

0xc0 - Register 1 of BLOCK5 (KEY1).

source

pub fn rd_key1_data2(&self) -> &RD_KEY1_DATA2

0xc4 - Register 2 of BLOCK5 (KEY1).

source

pub fn rd_key1_data3(&self) -> &RD_KEY1_DATA3

0xc8 - Register 3 of BLOCK5 (KEY1).

source

pub fn rd_key1_data4(&self) -> &RD_KEY1_DATA4

0xcc - Register 4 of BLOCK5 (KEY1).

source

pub fn rd_key1_data5(&self) -> &RD_KEY1_DATA5

0xd0 - Register 5 of BLOCK5 (KEY1).

source

pub fn rd_key1_data6(&self) -> &RD_KEY1_DATA6

0xd4 - Register 6 of BLOCK5 (KEY1).

source

pub fn rd_key1_data7(&self) -> &RD_KEY1_DATA7

0xd8 - Register 7 of BLOCK5 (KEY1).

source

pub fn rd_key2_data0(&self) -> &RD_KEY2_DATA0

0xdc - Register 0 of BLOCK6 (KEY2).

source

pub fn rd_key2_data1(&self) -> &RD_KEY2_DATA1

0xe0 - Register 1 of BLOCK6 (KEY2).

source

pub fn rd_key2_data2(&self) -> &RD_KEY2_DATA2

0xe4 - Register 2 of BLOCK6 (KEY2).

source

pub fn rd_key2_data3(&self) -> &RD_KEY2_DATA3

0xe8 - Register 3 of BLOCK6 (KEY2).

source

pub fn rd_key2_data4(&self) -> &RD_KEY2_DATA4

0xec - Register 4 of BLOCK6 (KEY2).

source

pub fn rd_key2_data5(&self) -> &RD_KEY2_DATA5

0xf0 - Register 5 of BLOCK6 (KEY2).

source

pub fn rd_key2_data6(&self) -> &RD_KEY2_DATA6

0xf4 - Register 6 of BLOCK6 (KEY2).

source

pub fn rd_key2_data7(&self) -> &RD_KEY2_DATA7

0xf8 - Register 7 of BLOCK6 (KEY2).

source

pub fn rd_key3_data0(&self) -> &RD_KEY3_DATA0

0xfc - Register 0 of BLOCK7 (KEY3).

source

pub fn rd_key3_data1(&self) -> &RD_KEY3_DATA1

0x100 - Register 1 of BLOCK7 (KEY3).

source

pub fn rd_key3_data2(&self) -> &RD_KEY3_DATA2

0x104 - Register 2 of BLOCK7 (KEY3).

source

pub fn rd_key3_data3(&self) -> &RD_KEY3_DATA3

0x108 - Register 3 of BLOCK7 (KEY3).

source

pub fn rd_key3_data4(&self) -> &RD_KEY3_DATA4

0x10c - Register 4 of BLOCK7 (KEY3).

source

pub fn rd_key3_data5(&self) -> &RD_KEY3_DATA5

0x110 - Register 5 of BLOCK7 (KEY3).

source

pub fn rd_key3_data6(&self) -> &RD_KEY3_DATA6

0x114 - Register 6 of BLOCK7 (KEY3).

source

pub fn rd_key3_data7(&self) -> &RD_KEY3_DATA7

0x118 - Register 7 of BLOCK7 (KEY3).

source

pub fn rd_key4_data0(&self) -> &RD_KEY4_DATA0

0x11c - Register 0 of BLOCK8 (KEY4).

source

pub fn rd_key4_data1(&self) -> &RD_KEY4_DATA1

0x120 - Register 1 of BLOCK8 (KEY4).

source

pub fn rd_key4_data2(&self) -> &RD_KEY4_DATA2

0x124 - Register 2 of BLOCK8 (KEY4).

source

pub fn rd_key4_data3(&self) -> &RD_KEY4_DATA3

0x128 - Register 3 of BLOCK8 (KEY4).

source

pub fn rd_key4_data4(&self) -> &RD_KEY4_DATA4

0x12c - Register 4 of BLOCK8 (KEY4).

source

pub fn rd_key4_data5(&self) -> &RD_KEY4_DATA5

0x130 - Register 5 of BLOCK8 (KEY4).

source

pub fn rd_key4_data6(&self) -> &RD_KEY4_DATA6

0x134 - Register 6 of BLOCK8 (KEY4).

source

pub fn rd_key4_data7(&self) -> &RD_KEY4_DATA7

0x138 - Register 7 of BLOCK8 (KEY4).

source

pub fn rd_key5_data0(&self) -> &RD_KEY5_DATA0

0x13c - Register 0 of BLOCK9 (KEY5).

source

pub fn rd_key5_data1(&self) -> &RD_KEY5_DATA1

0x140 - Register 1 of BLOCK9 (KEY5).

source

pub fn rd_key5_data2(&self) -> &RD_KEY5_DATA2

0x144 - Register 2 of BLOCK9 (KEY5).

source

pub fn rd_key5_data3(&self) -> &RD_KEY5_DATA3

0x148 - Register 3 of BLOCK9 (KEY5).

source

pub fn rd_key5_data4(&self) -> &RD_KEY5_DATA4

0x14c - Register 4 of BLOCK9 (KEY5).

source

pub fn rd_key5_data5(&self) -> &RD_KEY5_DATA5

0x150 - Register 5 of BLOCK9 (KEY5).

source

pub fn rd_key5_data6(&self) -> &RD_KEY5_DATA6

0x154 - Register 6 of BLOCK9 (KEY5).

source

pub fn rd_key5_data7(&self) -> &RD_KEY5_DATA7

0x158 - Register 7 of BLOCK9 (KEY5).

source

pub fn rd_sys_part2_data0(&self) -> &RD_SYS_PART2_DATA0

0x15c - Register 0 of BLOCK10 (system).

source

pub fn rd_sys_part2_data1(&self) -> &RD_SYS_PART2_DATA1

0x160 - Register 1 of BLOCK9 (KEY5).

source

pub fn rd_sys_part2_data2(&self) -> &RD_SYS_PART2_DATA2

0x164 - Register 2 of BLOCK10 (system).

source

pub fn rd_sys_part2_data3(&self) -> &RD_SYS_PART2_DATA3

0x168 - Register 3 of BLOCK10 (system).

source

pub fn rd_sys_part2_data4(&self) -> &RD_SYS_PART2_DATA4

0x16c - Register 4 of BLOCK10 (system).

source

pub fn rd_sys_part2_data5(&self) -> &RD_SYS_PART2_DATA5

0x170 - Register 5 of BLOCK10 (system).

source

pub fn rd_sys_part2_data6(&self) -> &RD_SYS_PART2_DATA6

0x174 - Register 6 of BLOCK10 (system).

source

pub fn rd_sys_part2_data7(&self) -> &RD_SYS_PART2_DATA7

0x178 - Register 7 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_conf1(&self) -> &WR_TIM_CONF1

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

source

pub fn wr_tim_conf2(&self) -> &WR_TIM_CONF2

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

source

pub fn date(&self) -> &DATE

0x1fc - eFuse version 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 Freeze for EFUSE

§

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.