pub struct GLB { /* private fields */ }
Expand description
Global configuration register
Implementations§
Source§impl GLB
impl GLB
Sourcepub const PTR: *const RegisterBlock = {0x20000000 as *const glb::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x20000000 as *const glb::RegisterBlock}
Pointer to the register block
Sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
Sourcepub unsafe fn steal() -> Self
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>§
Sourcepub fn chip_inform(&self) -> &CHIP_INFORM
pub fn chip_inform(&self) -> &CHIP_INFORM
0x00 - Chip information register
Sourcepub fn core_cfg16(&self) -> &CORE_CFG16
pub fn core_cfg16(&self) -> &CORE_CFG16
0x50 - core_cfg16.
Sourcepub fn interrupt_state(&self, n: usize) -> &INTERRUPT_STATE
pub fn interrupt_state(&self, n: usize) -> &INTERRUPT_STATE
0x50..0x58 - Chip interrupt state register
Sourcepub fn interrupt_state_iter(&self) -> impl Iterator<Item = &INTERRUPT_STATE>
pub fn interrupt_state_iter(&self) -> impl Iterator<Item = &INTERRUPT_STATE>
Iterator for array of: 0x50..0x58 - Chip interrupt state register
Sourcepub fn core_cfg17(&self) -> &CORE_CFG17
pub fn core_cfg17(&self) -> &CORE_CFG17
0x54 - core_cfg17.
Sourcepub fn core_cfg18(&self) -> &CORE_CFG18
pub fn core_cfg18(&self) -> &CORE_CFG18
0x58 - core_cfg18.
Sourcepub fn interrupt_mask(&self, n: usize) -> &INTERRUPT_MASK
pub fn interrupt_mask(&self, n: usize) -> &INTERRUPT_MASK
0x58..0x60 - Chip interrupt mask register
Sourcepub fn interrupt_mask_iter(&self) -> impl Iterator<Item = &INTERRUPT_MASK>
pub fn interrupt_mask_iter(&self) -> impl Iterator<Item = &INTERRUPT_MASK>
Iterator for array of: 0x58..0x60 - Chip interrupt mask register
Sourcepub fn core_cfg19(&self) -> &CORE_CFG19
pub fn core_cfg19(&self) -> &CORE_CFG19
0x5c - core_cfg19.
Sourcepub fn core_cfg20(&self) -> &CORE_CFG20
pub fn core_cfg20(&self) -> &CORE_CFG20
0x60 - core_cfg20.
Sourcepub fn interrupt_clear(&self, n: usize) -> &INTERRUPT_CLEAR
pub fn interrupt_clear(&self, n: usize) -> &INTERRUPT_CLEAR
0x60..0x68 - Chip clear interrupt register
Sourcepub fn interrupt_clear_iter(&self) -> impl Iterator<Item = &INTERRUPT_CLEAR>
pub fn interrupt_clear_iter(&self) -> impl Iterator<Item = &INTERRUPT_CLEAR>
Iterator for array of: 0x60..0x68 - Chip clear interrupt register
Sourcepub fn core_cfg21(&self) -> &CORE_CFG21
pub fn core_cfg21(&self) -> &CORE_CFG21
0x64 - core_cfg21.
Sourcepub fn clock_config_0(&self) -> &CLOCK_CONFIG_0
pub fn clock_config_0(&self) -> &CLOCK_CONFIG_0
0x90 - System clock configuration register 0
Sourcepub fn clock_config_1(&self) -> &CLOCK_CONFIG_1
pub fn clock_config_1(&self) -> &CLOCK_CONFIG_1
0x94 - System clock configuration register 1
Sourcepub fn bus_config_0(&self) -> &BUS_CONFIG_0
pub fn bus_config_0(&self) -> &BUS_CONFIG_0
0xa0 - Bus configuration register 0
Sourcepub fn gpadc_config(&self) -> &GPADC_CONFIG
pub fn gpadc_config(&self) -> &GPADC_CONFIG
0x110 - General Purpose Analog-to-digital convert configuration
Sourcepub fn gpdac_config_0(&self) -> &GPDAC_CONFIG_0
pub fn gpdac_config_0(&self) -> &GPDAC_CONFIG_0
0x120 - General Purpose Digital-to-analog convert configuration 0
Sourcepub fn gpdac_config_1(&self) -> &GPDAC_CONFIG_1
pub fn gpdac_config_1(&self) -> &GPDAC_CONFIG_1
0x124 - General Purpose Digital-to-analog convert configuration 1
Sourcepub fn gpdac_config_2(&self) -> &GPDAC_CONFIG_2
pub fn gpdac_config_2(&self) -> &GPDAC_CONFIG_2
0x128 - General Purpose Digital-to-analog convert configuration 2
Sourcepub fn gpdac_config_3(&self) -> &GPDAC_CONFIG_3
pub fn gpdac_config_3(&self) -> &GPDAC_CONFIG_3
0x12c - General Purpose Digital-to-analog convert configuration 3
Sourcepub fn dma_config_0(&self) -> &DMA_CONFIG_0
pub fn dma_config_0(&self) -> &DMA_CONFIG_0
0x130 - Direct Memory Access configuration 0
Sourcepub fn dma_config_1(&self) -> &DMA_CONFIG_1
pub fn dma_config_1(&self) -> &DMA_CONFIG_1
0x134 - Direct Memory Access configuration 1
Sourcepub fn dma_config_2(&self) -> &DMA_CONFIG_2
pub fn dma_config_2(&self) -> &DMA_CONFIG_2
0x138 - Direct Memory Access configuration 2
Sourcepub fn ir_config_0(&self) -> &IR_CONFIG_0
pub fn ir_config_0(&self) -> &IR_CONFIG_0
0x140 - Infrared configuration register 0
Sourcepub fn ir_config_1(&self) -> &IR_CONFIG_1
pub fn ir_config_1(&self) -> &IR_CONFIG_1
0x144 - Infrared configuration register 1
Sourcepub fn uart_config(&self) -> &UART_CONFIG
pub fn uart_config(&self) -> &UART_CONFIG
0x150 - Universal Asynchronous Receiver/Transmitter configuration
Sourcepub fn uart_signal_0(&self) -> &UART_SIGNAL_0
pub fn uart_signal_0(&self) -> &UART_SIGNAL_0
0x154 - Universal Asynchronous Receiver/Transmitter signal configuration 0
Sourcepub fn uart_signal_1(&self) -> &UART_SIGNAL_1
pub fn uart_signal_1(&self) -> &UART_SIGNAL_1
0x158 - Universal Asynchronous Receiver/Transmitter signal configuration 1
Sourcepub fn flash_config(&self) -> &FLASH_CONFIG
pub fn flash_config(&self) -> &FLASH_CONFIG
0x170 - Serial flash configuration
Sourcepub fn i2c_config(&self) -> &I2C_CONFIG
pub fn i2c_config(&self) -> &I2C_CONFIG
0x180 - Inter-Integrated Circuit bus configuration
Sourcepub fn i2s_config(&self) -> &I2S_CONFIG
pub fn i2s_config(&self) -> &I2S_CONFIG
0x190 - Inter-IC Sound configuration
Sourcepub fn spi_config(&self) -> &SPI_CONFIG
pub fn spi_config(&self) -> &SPI_CONFIG
0x1b0 - Serial Peripheral Interface configuration
Sourcepub fn pwm_config(&self) -> &PWM_CONFIG
pub fn pwm_config(&self) -> &PWM_CONFIG
0x1e0 - Pulse-Width configuration
Sourcepub fn dbi_config(&self) -> &DBI_CONFIG
pub fn dbi_config(&self) -> &DBI_CONFIG
0x1f0 - MIPI Display Bus Interface clock configuration
Sourcepub fn digit_clock_0(&self) -> &DIGIT_CLOCK_0
pub fn digit_clock_0(&self) -> &DIGIT_CLOCK_0
0x250 - Digital clock configuration 0
Sourcepub fn digit_clock_1(&self) -> &DIGIT_CLOCK_1
pub fn digit_clock_1(&self) -> &DIGIT_CLOCK_1
0x254 - Digital clock configuration 1
Sourcepub fn digit_clock_2(&self) -> &DIGIT_CLOCK_2
pub fn digit_clock_2(&self) -> &DIGIT_CLOCK_2
0x258 - Digital clock configuration 2
Sourcepub fn radio_config(&self) -> &RADIO_CONFIG
pub fn radio_config(&self) -> &RADIO_CONFIG
0x260 - Radio frequency configuration register
Sourcepub fn debug_config_0(&self) -> &DEBUG_CONFIG_0
pub fn debug_config_0(&self) -> &DEBUG_CONFIG_0
0x2e0 - Debug configuration register 0
Sourcepub fn debug_config_1(&self) -> &DEBUG_CONFIG_1
pub fn debug_config_1(&self) -> &DEBUG_CONFIG_1
0x2e4 - Debug configuration register 1
Sourcepub fn debug_config_2(&self) -> &DEBUG_CONFIG_2
pub fn debug_config_2(&self) -> &DEBUG_CONFIG_2
0x2e8 - Debug configuration register 2
Sourcepub fn debug_config_3(&self) -> &DEBUG_CONFIG_3
pub fn debug_config_3(&self) -> &DEBUG_CONFIG_3
0x2ec - Debug configuration register 3
Sourcepub fn debug_config_4(&self) -> &DEBUG_CONFIG_4
pub fn debug_config_4(&self) -> &DEBUG_CONFIG_4
0x2f0 - Debug configuration register 4
Sourcepub fn self_test_0(&self) -> &SELF_TEST_0
pub fn self_test_0(&self) -> &SELF_TEST_0
0x300 - Machine Built-in Self Test register 0
Sourcepub fn self_test_1(&self) -> &SELF_TEST_1
pub fn self_test_1(&self) -> &SELF_TEST_1
0x304 - Machine Built-in Self Test register 1
Sourcepub fn audio_config_0(&self) -> &AUDIO_CONFIG_0
pub fn audio_config_0(&self) -> &AUDIO_CONFIG_0
0x340 - Audio configuration register 0
Sourcepub fn audio_config_1(&self) -> &AUDIO_CONFIG_1
pub fn audio_config_1(&self) -> &AUDIO_CONFIG_1
0x344 - Audio configuration register 1
Sourcepub fn emac_config(&self) -> &EMAC_CONFIG
pub fn emac_config(&self) -> &EMAC_CONFIG
0x390 - Ethernet Media Access Control configuration
Sourcepub fn sdh_config(&self) -> &SDH_CONFIG
pub fn sdh_config(&self) -> &SDH_CONFIG
0x430 - Secure Digital host configuration
Sourcepub fn permit_config(&self) -> &PERMIT_CONFIG
pub fn permit_config(&self) -> &PERMIT_CONFIG
0x490 - Permission control peripheral configuration
Sourcepub fn glb_parm_cfg0(&self) -> &GLB_PARM_CFG0
pub fn glb_parm_cfg0(&self) -> &GLB_PARM_CFG0
0x510 - glb_parm_cfg0.
Sourcepub fn debug_cfg1(&self) -> &DEBUG_CFG1
pub fn debug_cfg1(&self) -> &DEBUG_CFG1
0x524 - debug_cfg1.
Sourcepub fn reset_sts0(&self) -> &RESET_STS0
pub fn reset_sts0(&self) -> &RESET_STS0
0x530 - reset_sts0.
Sourcepub fn swrst_cfg0(&self) -> &SWRST_CFG0
pub fn swrst_cfg0(&self) -> &SWRST_CFG0
0x540 - swrst_s1_ext + swrst_s3 + swrst_s2
Sourcepub fn swrst_cfg2(&self) -> &SWRST_CFG2
pub fn swrst_cfg2(&self) -> &SWRST_CFG2
0x548 - swrst_cfg2.
Sourcepub fn swrst_cfg3(&self) -> &SWRST_CFG3
pub fn swrst_cfg3(&self) -> &SWRST_CFG3
0x54c - Disable hreset
Sourcepub fn reg_sram_ret(&self) -> ®_SRAM_RET
pub fn reg_sram_ret(&self) -> ®_SRAM_RET
0x600 - reg_sram_ret.
Sourcepub fn reg_sram_slp(&self) -> ®_SRAM_SLP
pub fn reg_sram_slp(&self) -> ®_SRAM_SLP
0x604 - reg_sram_slp.
Sourcepub fn reg_sram_parm(&self) -> ®_SRAM_PARM
pub fn reg_sram_parm(&self) -> ®_SRAM_PARM
0x608 - reg_sram_parm.
Sourcepub fn reg_sram_parm2(&self) -> ®_SRAM_PARM2
pub fn reg_sram_parm2(&self) -> ®_SRAM_PARM2
0x610 - reg_sram_parm2.
Sourcepub fn psram_config(&self) -> &PSRAM_CONFIG
pub fn psram_config(&self) -> &PSRAM_CONFIG
0x620 - Pseudo Static Random-Access Memory configuration
Sourcepub fn wifi_pll_config_0(&self) -> &WIFI_PLL_CONFIG_0
pub fn wifi_pll_config_0(&self) -> &WIFI_PLL_CONFIG_0
0x810 - Wireless Fidelity Phase-Locked Loop configuration 0
Sourcepub fn wifi_pll_config_1(&self) -> &WIFI_PLL_CONFIG_1
pub fn wifi_pll_config_1(&self) -> &WIFI_PLL_CONFIG_1
0x814 - Wireless Fidelity Phase-Locked Loop configuration 1
Sourcepub fn wifi_pll_config_2(&self) -> &WIFI_PLL_CONFIG_2
pub fn wifi_pll_config_2(&self) -> &WIFI_PLL_CONFIG_2
0x818 - Wireless Fidelity Phase-Locked Loop configuration 2
Sourcepub fn wifi_pll_config_3(&self) -> &WIFI_PLL_CONFIG_3
pub fn wifi_pll_config_3(&self) -> &WIFI_PLL_CONFIG_3
0x81c - Wireless Fidelity Phase-Locked Loop configuration 3
Sourcepub fn wifi_pll_config_4(&self) -> &WIFI_PLL_CONFIG_4
pub fn wifi_pll_config_4(&self) -> &WIFI_PLL_CONFIG_4
0x820 - Wireless Fidelity Phase-Locked Loop configuration 4
Sourcepub fn wifi_pll_config_5(&self) -> &WIFI_PLL_CONFIG_5
pub fn wifi_pll_config_5(&self) -> &WIFI_PLL_CONFIG_5
0x824 - Wireless Fidelity Phase-Locked Loop configuration 5
Sourcepub fn wifi_pll_config_6(&self) -> &WIFI_PLL_CONFIG_6
pub fn wifi_pll_config_6(&self) -> &WIFI_PLL_CONFIG_6
0x828 - Wireless Fidelity Phase-Locked Loop configuration 6
Sourcepub fn wifi_pll_config_7(&self) -> &WIFI_PLL_CONFIG_7
pub fn wifi_pll_config_7(&self) -> &WIFI_PLL_CONFIG_7
0x82c - Wireless Fidelity Phase-Locked Loop configuration 7
Sourcepub fn wifi_pll_config_8(&self) -> &WIFI_PLL_CONFIG_8
pub fn wifi_pll_config_8(&self) -> &WIFI_PLL_CONFIG_8
0x830 - Wireless Fidelity Phase-Locked Loop configuration 8
Sourcepub fn wifi_pll_config_9(&self) -> &WIFI_PLL_CONFIG_9
pub fn wifi_pll_config_9(&self) -> &WIFI_PLL_CONFIG_9
0x834 - Wireless Fidelity Phase-Locked Loop configuration 9
Sourcepub fn wifi_pll_config_10(&self) -> &WIFI_PLL_CONFIG_10
pub fn wifi_pll_config_10(&self) -> &WIFI_PLL_CONFIG_10
0x838 - Wireless Fidelity Phase-Locked Loop configuration 10
Sourcepub fn wifi_pll_config_11(&self) -> &WIFI_PLL_CONFIG_11
pub fn wifi_pll_config_11(&self) -> &WIFI_PLL_CONFIG_11
0x83c - Wireless Fidelity Phase-Locked Loop configuration 11
Sourcepub fn wifi_pll_config_12(&self) -> &WIFI_PLL_CONFIG_12
pub fn wifi_pll_config_12(&self) -> &WIFI_PLL_CONFIG_12
0x840 - Wireless Fidelity Phase-Locked Loop configuration 12
Sourcepub fn wifi_pll_config_13(&self) -> &WIFI_PLL_CONFIG_13
pub fn wifi_pll_config_13(&self) -> &WIFI_PLL_CONFIG_13
0x844 - Wireless Fidelity Phase-Locked Loop configuration 13
Sourcepub fn wifi_pll_config_14(&self) -> &WIFI_PLL_CONFIG_14
pub fn wifi_pll_config_14(&self) -> &WIFI_PLL_CONFIG_14
0x848 - Wireless Fidelity Phase-Locked Loop configuration 14
Sourcepub fn gpio_config(&self, n: usize) -> &GPIO_CONFIG
pub fn gpio_config(&self, n: usize) -> &GPIO_CONFIG
0x8c4..0x950 - Generic Purpose Input/Output config
Sourcepub fn gpio_config_iter(&self) -> impl Iterator<Item = &GPIO_CONFIG>
pub fn gpio_config_iter(&self) -> impl Iterator<Item = &GPIO_CONFIG>
Iterator for array of: 0x8c4..0x950 - Generic Purpose Input/Output config
Sourcepub fn gpio_input_0(&self) -> &GPIO_INPUT_0
pub fn gpio_input_0(&self) -> &GPIO_INPUT_0
0xac4 - Read value from Generic Purpose Input/Output pins (GPIO0 ~ GPIO31)
Sourcepub fn gpio_input_1(&self) -> &GPIO_INPUT_1
pub fn gpio_input_1(&self) -> &GPIO_INPUT_1
0xac8 - Read value from Generic Purpose Input/Output pins (GPIO32 ~ GPIO34)
Sourcepub fn gpio_output_0(&self) -> &GPIO_OUTPUT_0
pub fn gpio_output_0(&self) -> &GPIO_OUTPUT_0
0xae4 - Write value to Generic Purpose Input/Output pins (GPIO0 ~ GPIO31)
Sourcepub fn gpio_output_1(&self) -> &GPIO_OUTPUT_1
pub fn gpio_output_1(&self) -> &GPIO_OUTPUT_1
0xae8 - Write value to Generic Purpose Input/Output pins (GPIO32 ~ GPIO34)
Sourcepub fn gpio_set_0(&self) -> &GPIO_SET_0
pub fn gpio_set_0(&self) -> &GPIO_SET_0
0xaec - Set pin output value to high (GPIO0 ~ GPIO31)
Sourcepub fn gpio_set_1(&self) -> &GPIO_SET_1
pub fn gpio_set_1(&self) -> &GPIO_SET_1
0xaf0 - Set pin output value to high (GPIO32 ~ GPIO34)
Sourcepub fn gpio_clear_0(&self) -> &GPIO_CLEAR_0
pub fn gpio_clear_0(&self) -> &GPIO_CLEAR_0
0xaf4 - Set pin output value to low (GPIO0 ~ GPIO31)
Sourcepub fn gpio_clear_1(&self) -> &GPIO_CLEAR_1
pub fn gpio_clear_1(&self) -> &GPIO_CLEAR_1
0xaf8 - Set pin output value to low (GPIO32 ~ GPIO34)