Struct esp32c3::APB_CTRL

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

APB (Advanced Peripheral Bus) Controller

Implementations§

source§

impl APB_CTRL

source

pub const PTR: *const RegisterBlock = {0x60026000 as *const apb_ctrl::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 - APB_CTRL_SYSCLK_CONF_REG

source

pub fn tick_conf(&self) -> &TICK_CONF

0x04 - APB_CTRL_TICK_CONF_REG

source

pub fn clk_out_en(&self) -> &CLK_OUT_EN

0x08 - APB_CTRL_CLK_OUT_EN_REG

source

pub fn wifi_bb_cfg(&self) -> &WIFI_BB_CFG

0x0c - APB_CTRL_WIFI_BB_CFG_REG

source

pub fn wifi_bb_cfg_2(&self) -> &WIFI_BB_CFG_2

0x10 - APB_CTRL_WIFI_BB_CFG_2_REG

source

pub fn wifi_clk_en(&self) -> &WIFI_CLK_EN

0x14 - APB_CTRL_WIFI_CLK_EN_REG

source

pub fn wifi_rst_en(&self) -> &WIFI_RST_EN

0x18 - APB_CTRL_WIFI_RST_EN_REG

source

pub fn host_inf_sel(&self) -> &HOST_INF_SEL

0x1c - APB_CTRL_HOST_INF_SEL_REG

source

pub fn ext_mem_pms_lock(&self) -> &EXT_MEM_PMS_LOCK

0x20 - APB_CTRL_EXT_MEM_PMS_LOCK_REG

source

pub fn flash_ace0_attr(&self) -> &FLASH_ACE0_ATTR

0x28 - APB_CTRL_FLASH_ACE0_ATTR_REG

source

pub fn flash_ace1_attr(&self) -> &FLASH_ACE1_ATTR

0x2c - APB_CTRL_FLASH_ACE1_ATTR_REG

source

pub fn flash_ace2_attr(&self) -> &FLASH_ACE2_ATTR

0x30 - APB_CTRL_FLASH_ACE2_ATTR_REG

source

pub fn flash_ace3_attr(&self) -> &FLASH_ACE3_ATTR

0x34 - APB_CTRL_FLASH_ACE3_ATTR_REG

source

pub fn flash_ace0_addr(&self) -> &FLASH_ACE0_ADDR

0x38 - APB_CTRL_FLASH_ACE0_ADDR_REG

source

pub fn flash_ace1_addr(&self) -> &FLASH_ACE1_ADDR

0x3c - APB_CTRL_FLASH_ACE1_ADDR_REG

source

pub fn flash_ace2_addr(&self) -> &FLASH_ACE2_ADDR

0x40 - APB_CTRL_FLASH_ACE2_ADDR_REG

source

pub fn flash_ace3_addr(&self) -> &FLASH_ACE3_ADDR

0x44 - APB_CTRL_FLASH_ACE3_ADDR_REG

source

pub fn flash_ace0_size(&self) -> &FLASH_ACE0_SIZE

0x48 - APB_CTRL_FLASH_ACE0_SIZE_REG

source

pub fn flash_ace1_size(&self) -> &FLASH_ACE1_SIZE

0x4c - APB_CTRL_FLASH_ACE1_SIZE_REG

source

pub fn flash_ace2_size(&self) -> &FLASH_ACE2_SIZE

0x50 - APB_CTRL_FLASH_ACE2_SIZE_REG

source

pub fn flash_ace3_size(&self) -> &FLASH_ACE3_SIZE

0x54 - APB_CTRL_FLASH_ACE3_SIZE_REG

source

pub fn spi_mem_pms_ctrl(&self) -> &SPI_MEM_PMS_CTRL

0x88 - APB_CTRL_SPI_MEM_PMS_CTRL_REG

source

pub fn spi_mem_reject_addr(&self) -> &SPI_MEM_REJECT_ADDR

0x8c - APB_CTRL_SPI_MEM_REJECT_ADDR_REG

source

pub fn sdio_ctrl(&self) -> &SDIO_CTRL

0x90 - APB_CTRL_SDIO_CTRL_REG

source

pub fn redcy_sig0(&self) -> &REDCY_SIG0

0x94 - APB_CTRL_REDCY_SIG0_REG_REG

source

pub fn redcy_sig1(&self) -> &REDCY_SIG1

0x98 - APB_CTRL_REDCY_SIG1_REG_REG

source

pub fn front_end_mem_pd(&self) -> &FRONT_END_MEM_PD

0x9c - APB_CTRL_FRONT_END_MEM_PD_REG

source

pub fn retention_ctrl(&self) -> &RETENTION_CTRL

0xa0 - APB_CTRL_RETENTION_CTRL_REG

source

pub fn clkgate_force_on(&self) -> &CLKGATE_FORCE_ON

0xa4 - APB_CTRL_CLKGATE_FORCE_ON_REG

source

pub fn mem_power_down(&self) -> &MEM_POWER_DOWN

0xa8 - APB_CTRL_MEM_POWER_DOWN_REG

source

pub fn mem_power_up(&self) -> &MEM_POWER_UP

0xac - APB_CTRL_MEM_POWER_UP_REG

source

pub fn rnd_data(&self) -> &RND_DATA

0xb0 - APB_CTRL_RND_DATA_REG

source

pub fn peri_backup_config(&self) -> &PERI_BACKUP_CONFIG

0xb4 - APB_CTRL_PERI_BACKUP_CONFIG_REG_REG

source

pub fn peri_backup_apb_addr(&self) -> &PERI_BACKUP_APB_ADDR

0xb8 - APB_CTRL_PERI_BACKUP_APB_ADDR_REG_REG

source

pub fn peri_backup_mem_addr(&self) -> &PERI_BACKUP_MEM_ADDR

0xbc - APB_CTRL_PERI_BACKUP_MEM_ADDR_REG_REG

source

pub fn peri_backup_int_raw(&self) -> &PERI_BACKUP_INT_RAW

0xc0 - APB_CTRL_PERI_BACKUP_INT_RAW_REG

source

pub fn peri_backup_int_st(&self) -> &PERI_BACKUP_INT_ST

0xc4 - APB_CTRL_PERI_BACKUP_INT_ST_REG

source

pub fn peri_backup_int_ena(&self) -> &PERI_BACKUP_INT_ENA

0xc8 - APB_CTRL_PERI_BACKUP_INT_ENA_REG

source

pub fn peri_backup_int_clr(&self) -> &PERI_BACKUP_INT_CLR

0xd0 - APB_CTRL_PERI_BACKUP_INT_CLR_REG

source

pub fn date(&self) -> &DATE

0x3fc - APB_CTRL_DATE_REG

Trait Implementations§

source§

impl Debug for APB_CTRL

source§

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

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

impl Deref for APB_CTRL

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl Send for APB_CTRL

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.