Struct GLB

Source
pub struct GLB { /* private fields */ }
Expand description

Global configuration register

Implementations§

Source§

impl GLB

Source

pub const PTR: *const RegisterBlock = {0x20000000 as *const glb::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 chip_inform(&self) -> &CHIP_INFORM

0x00 - Chip information register

Source

pub fn core_cfg16(&self) -> &CORE_CFG16

0x50 - core_cfg16.

Source

pub fn interrupt_state(&self, n: usize) -> &INTERRUPT_STATE

0x50..0x58 - Chip interrupt state register

Source

pub fn interrupt_state_iter(&self) -> impl Iterator<Item = &INTERRUPT_STATE>

Iterator for array of: 0x50..0x58 - Chip interrupt state register

Source

pub fn core_cfg17(&self) -> &CORE_CFG17

0x54 - core_cfg17.

Source

pub fn core_cfg18(&self) -> &CORE_CFG18

0x58 - core_cfg18.

Source

pub fn interrupt_mask(&self, n: usize) -> &INTERRUPT_MASK

0x58..0x60 - Chip interrupt mask register

Source

pub fn interrupt_mask_iter(&self) -> impl Iterator<Item = &INTERRUPT_MASK>

Iterator for array of: 0x58..0x60 - Chip interrupt mask register

Source

pub fn core_cfg19(&self) -> &CORE_CFG19

0x5c - core_cfg19.

Source

pub fn core_cfg20(&self) -> &CORE_CFG20

0x60 - core_cfg20.

Source

pub fn interrupt_clear(&self, n: usize) -> &INTERRUPT_CLEAR

0x60..0x68 - Chip clear interrupt register

Source

pub fn interrupt_clear_iter(&self) -> impl Iterator<Item = &INTERRUPT_CLEAR>

Iterator for array of: 0x60..0x68 - Chip clear interrupt register

Source

pub fn core_cfg21(&self) -> &CORE_CFG21

0x64 - core_cfg21.

Source

pub fn clock_config_0(&self) -> &CLOCK_CONFIG_0

0x90 - System clock configuration register 0

Source

pub fn clock_config_1(&self) -> &CLOCK_CONFIG_1

0x94 - System clock configuration register 1

Source

pub fn bus_config_0(&self) -> &BUS_CONFIG_0

0xa0 - Bus configuration register 0

Source

pub fn gpadc_config(&self) -> &GPADC_CONFIG

0x110 - General Purpose Analog-to-digital convert configuration

Source

pub fn gpdac_config_0(&self) -> &GPDAC_CONFIG_0

0x120 - General Purpose Digital-to-analog convert configuration 0

Source

pub fn gpdac_config_1(&self) -> &GPDAC_CONFIG_1

0x124 - General Purpose Digital-to-analog convert configuration 1

Source

pub fn gpdac_config_2(&self) -> &GPDAC_CONFIG_2

0x128 - General Purpose Digital-to-analog convert configuration 2

Source

pub fn gpdac_config_3(&self) -> &GPDAC_CONFIG_3

0x12c - General Purpose Digital-to-analog convert configuration 3

Source

pub fn dma_config_0(&self) -> &DMA_CONFIG_0

0x130 - Direct Memory Access configuration 0

Source

pub fn dma_config_1(&self) -> &DMA_CONFIG_1

0x134 - Direct Memory Access configuration 1

Source

pub fn dma_config_2(&self) -> &DMA_CONFIG_2

0x138 - Direct Memory Access configuration 2

Source

pub fn ir_config_0(&self) -> &IR_CONFIG_0

0x140 - Infrared configuration register 0

Source

pub fn ir_config_1(&self) -> &IR_CONFIG_1

0x144 - Infrared configuration register 1

Source

pub fn uart_config(&self) -> &UART_CONFIG

0x150 - Universal Asynchronous Receiver/Transmitter configuration

Source

pub fn uart_signal_0(&self) -> &UART_SIGNAL_0

0x154 - Universal Asynchronous Receiver/Transmitter signal configuration 0

Source

pub fn uart_signal_1(&self) -> &UART_SIGNAL_1

0x158 - Universal Asynchronous Receiver/Transmitter signal configuration 1

Source

pub fn flash_config(&self) -> &FLASH_CONFIG

0x170 - Serial flash configuration

Source

pub fn i2c_config(&self) -> &I2C_CONFIG

0x180 - Inter-Integrated Circuit bus configuration

Source

pub fn i2s_config(&self) -> &I2S_CONFIG

0x190 - Inter-IC Sound configuration

Source

pub fn spi_config(&self) -> &SPI_CONFIG

0x1b0 - Serial Peripheral Interface configuration

Source

pub fn pio_cfg0(&self) -> &PIO_CFG0

0x1c0 - pio_cfg0.

Source

pub fn pwm_cfg0(&self) -> &PWM_CFG0

0x1d0 - pwm_cfg0.

Source

pub fn pwm_config(&self) -> &PWM_CONFIG

0x1e0 - Pulse-Width configuration

Source

pub fn dbi_config(&self) -> &DBI_CONFIG

0x1f0 - MIPI Display Bus Interface clock configuration

Source

pub fn digit_clock_0(&self) -> &DIGIT_CLOCK_0

0x250 - Digital clock configuration 0

Source

pub fn digit_clock_1(&self) -> &DIGIT_CLOCK_1

0x254 - Digital clock configuration 1

Source

pub fn digit_clock_2(&self) -> &DIGIT_CLOCK_2

0x258 - Digital clock configuration 2

Source

pub fn radio_config(&self) -> &RADIO_CONFIG

0x260 - Radio frequency configuration register

Source

pub fn debug_config_0(&self) -> &DEBUG_CONFIG_0

0x2e0 - Debug configuration register 0

Source

pub fn debug_config_1(&self) -> &DEBUG_CONFIG_1

0x2e4 - Debug configuration register 1

Source

pub fn debug_config_2(&self) -> &DEBUG_CONFIG_2

0x2e8 - Debug configuration register 2

Source

pub fn debug_config_3(&self) -> &DEBUG_CONFIG_3

0x2ec - Debug configuration register 3

Source

pub fn debug_config_4(&self) -> &DEBUG_CONFIG_4

0x2f0 - Debug configuration register 4

Source

pub fn self_test_0(&self) -> &SELF_TEST_0

0x300 - Machine Built-in Self Test register 0

Source

pub fn self_test_1(&self) -> &SELF_TEST_1

0x304 - Machine Built-in Self Test register 1

Source

pub fn bmx_cfg0(&self) -> &BMX_CFG0

0x320 - bmx_cfg0.

Source

pub fn bmx_cfg1(&self) -> &BMX_CFG1

0x324 - bmx_cfg1.

Source

pub fn bmx_cfg2(&self) -> &BMX_CFG2

0x328 - bmx_cfg2.

Source

pub fn bmx_cfg3(&self) -> &BMX_CFG3

0x32c - bmx_cfg3.

Source

pub fn bmx_cfg4(&self) -> &BMX_CFG4

0x330 - bmx_cfg4.

Source

pub fn bmx_cfg5(&self) -> &BMX_CFG5

0x334 - bmx_cfg5.

Source

pub fn bmx_cfg6(&self) -> &BMX_CFG6

0x338 - bmx_cfg6.

Source

pub fn audio_config_0(&self) -> &AUDIO_CONFIG_0

0x340 - Audio configuration register 0

Source

pub fn audio_config_1(&self) -> &AUDIO_CONFIG_1

0x344 - Audio configuration register 1

Source

pub fn emac_config(&self) -> &EMAC_CONFIG

0x390 - Ethernet Media Access Control configuration

Source

pub fn cam_cfg0(&self) -> &CAM_CFG0

0x420 - cam_cfg0.

Source

pub fn sdh_config(&self) -> &SDH_CONFIG

0x430 - Secure Digital host configuration

Source

pub fn sdio_cfg0(&self) -> &SDIO_CFG0

0x440 - sdio_cfg0.

Source

pub fn permit_config(&self) -> &PERMIT_CONFIG

0x490 - Permission control peripheral configuration

Source

pub fn glb_parm_cfg0(&self) -> &GLB_PARM_CFG0

0x510 - glb_parm_cfg0.

Source

pub fn debug_cfg1(&self) -> &DEBUG_CFG1

0x524 - debug_cfg1.

Source

pub fn reset_sts0(&self) -> &RESET_STS0

0x530 - reset_sts0.

Source

pub fn swrst_cfg0(&self) -> &SWRST_CFG0

0x540 - swrst_s1_ext + swrst_s3 + swrst_s2

Source

pub fn swrst_s1(&self) -> &SWRST_S1

0x544 - swrst_s1.

Source

pub fn swrst_cfg2(&self) -> &SWRST_CFG2

0x548 - swrst_cfg2.

Source

pub fn swrst_cfg3(&self) -> &SWRST_CFG3

0x54c - Disable hreset

Source

pub fn cgen_m(&self) -> &CGEN_M

0x580 - cgen_m.

Source

pub fn cgen_cfg1(&self) -> &CGEN_CFG1

0x584 - cgen_s1a + cgen_s1

Source

pub fn cgen_cfg2(&self) -> &CGEN_CFG2

0x588 - cgen_s1_ext + cgen_s3

Source

pub fn cgen_cfg3(&self) -> &CGEN_CFG3

0x58c - cgen_cfg3.

Source

pub fn reg_sram_ret(&self) -> &REG_SRAM_RET

0x600 - reg_sram_ret.

Source

pub fn reg_sram_slp(&self) -> &REG_SRAM_SLP

0x604 - reg_sram_slp.

Source

pub fn reg_sram_parm(&self) -> &REG_SRAM_PARM

0x608 - reg_sram_parm.

Source

pub fn sram_cfg3(&self) -> &SRAM_CFG3

0x60c - sram_cfg3.

Source

pub fn reg_sram_parm2(&self) -> &REG_SRAM_PARM2

0x610 - reg_sram_parm2.

Source

pub fn psram_config(&self) -> &PSRAM_CONFIG

0x620 - Pseudo Static Random-Access Memory configuration

Source

pub fn proc_mon(&self) -> &PROC_MON

0x6f0 - proc_mon.

Source

pub fn wifi_pll_config_0(&self) -> &WIFI_PLL_CONFIG_0

0x810 - Wireless Fidelity Phase-Locked Loop configuration 0

Source

pub fn wifi_pll_config_1(&self) -> &WIFI_PLL_CONFIG_1

0x814 - Wireless Fidelity Phase-Locked Loop configuration 1

Source

pub fn wifi_pll_config_2(&self) -> &WIFI_PLL_CONFIG_2

0x818 - Wireless Fidelity Phase-Locked Loop configuration 2

Source

pub fn wifi_pll_config_3(&self) -> &WIFI_PLL_CONFIG_3

0x81c - Wireless Fidelity Phase-Locked Loop configuration 3

Source

pub fn wifi_pll_config_4(&self) -> &WIFI_PLL_CONFIG_4

0x820 - Wireless Fidelity Phase-Locked Loop configuration 4

Source

pub fn wifi_pll_config_5(&self) -> &WIFI_PLL_CONFIG_5

0x824 - Wireless Fidelity Phase-Locked Loop configuration 5

Source

pub fn wifi_pll_config_6(&self) -> &WIFI_PLL_CONFIG_6

0x828 - Wireless Fidelity Phase-Locked Loop configuration 6

Source

pub fn wifi_pll_config_7(&self) -> &WIFI_PLL_CONFIG_7

0x82c - Wireless Fidelity Phase-Locked Loop configuration 7

Source

pub fn wifi_pll_config_8(&self) -> &WIFI_PLL_CONFIG_8

0x830 - Wireless Fidelity Phase-Locked Loop configuration 8

Source

pub fn wifi_pll_config_9(&self) -> &WIFI_PLL_CONFIG_9

0x834 - Wireless Fidelity Phase-Locked Loop configuration 9

Source

pub fn wifi_pll_config_10(&self) -> &WIFI_PLL_CONFIG_10

0x838 - Wireless Fidelity Phase-Locked Loop configuration 10

Source

pub fn wifi_pll_config_11(&self) -> &WIFI_PLL_CONFIG_11

0x83c - Wireless Fidelity Phase-Locked Loop configuration 11

Source

pub fn wifi_pll_config_12(&self) -> &WIFI_PLL_CONFIG_12

0x840 - Wireless Fidelity Phase-Locked Loop configuration 12

Source

pub fn wifi_pll_config_13(&self) -> &WIFI_PLL_CONFIG_13

0x844 - Wireless Fidelity Phase-Locked Loop configuration 13

Source

pub fn wifi_pll_config_14(&self) -> &WIFI_PLL_CONFIG_14

0x848 - Wireless Fidelity Phase-Locked Loop configuration 14

Source

pub fn ldo18(&self) -> &LDO18

0x884 - 1.8-V Low Dropout Linear Regulator configuration

Source

pub fn gpio_config(&self, n: usize) -> &GPIO_CONFIG

0x8c4..0x950 - Generic Purpose Input/Output config

Source

pub fn gpio_config_iter(&self) -> impl Iterator<Item = &GPIO_CONFIG>

Iterator for array of: 0x8c4..0x950 - Generic Purpose Input/Output config

Source

pub fn gpio_input_0(&self) -> &GPIO_INPUT_0

0xac4 - Read value from Generic Purpose Input/Output pins (GPIO0 ~ GPIO31)

Source

pub fn gpio_input_1(&self) -> &GPIO_INPUT_1

0xac8 - Read value from Generic Purpose Input/Output pins (GPIO32 ~ GPIO34)

Source

pub fn gpio_output_0(&self) -> &GPIO_OUTPUT_0

0xae4 - Write value to Generic Purpose Input/Output pins (GPIO0 ~ GPIO31)

Source

pub fn gpio_output_1(&self) -> &GPIO_OUTPUT_1

0xae8 - Write value to Generic Purpose Input/Output pins (GPIO32 ~ GPIO34)

Source

pub fn gpio_set_0(&self) -> &GPIO_SET_0

0xaec - Set pin output value to high (GPIO0 ~ GPIO31)

Source

pub fn gpio_set_1(&self) -> &GPIO_SET_1

0xaf0 - Set pin output value to high (GPIO32 ~ GPIO34)

Source

pub fn gpio_clear_0(&self) -> &GPIO_CLEAR_0

0xaf4 - Set pin output value to low (GPIO0 ~ GPIO31)

Source

pub fn gpio_clear_1(&self) -> &GPIO_CLEAR_1

0xaf8 - Set pin output value to low (GPIO32 ~ GPIO34)

Trait Implementations§

Source§

impl Debug for GLB

Source§

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

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

impl Deref for GLB

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl Send for GLB

Auto Trait Implementations§

§

impl Freeze for GLB

§

impl RefUnwindSafe for GLB

§

impl !Sync for GLB

§

impl Unpin for GLB

§

impl UnwindSafe for GLB

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.