Skip to main content

RegisterBlock

Struct RegisterBlock 

Source
pub struct RegisterBlock {
Show 64 fields pub chip_inform: CHIP_INFORM, pub interrupt_state: [INTERRUPT_STATE; 2], pub interrupt_mask: [INTERRUPT_MASK; 2], pub interrupt_clear: [INTERRUPT_CLEAR; 2], pub clock_config_0: CLOCK_CONFIG_0, pub clock_config_1: CLOCK_CONFIG_1, pub bus_config_0: BUS_CONFIG_0, pub gpadc_config: GPADC_CONFIG, pub gpdac_config_0: GPDAC_CONFIG_0, pub gpdac_config_1: GPDAC_CONFIG_1, pub gpdac_config_2: GPDAC_CONFIG_2, pub gpdac_config_3: GPDAC_CONFIG_3, pub dma_config_0: DMA_CONFIG_0, pub dma_config_1: DMA_CONFIG_1, pub dma_config_2: DMA_CONFIG_2, pub ir_config_0: IR_CONFIG_0, pub ir_config_1: IR_CONFIG_1, pub uart_config: UART_CONFIG, pub uart_signal_0: UART_SIGNAL_0, pub uart_signal_1: UART_SIGNAL_1, pub flash_config: FLASH_CONFIG, pub i2c_config: I2C_CONFIG, pub i2s_config: I2S_CONFIG, pub spi_config: SPI_CONFIG, pub pwm_config: PWM_CONFIG, pub dbi_config: DBI_CONFIG, pub digit_clock_0: DIGIT_CLOCK_0, pub digit_clock_1: DIGIT_CLOCK_1, pub digit_clock_2: DIGIT_CLOCK_2, pub radio_config: RADIO_CONFIG, pub debug_config_0: DEBUG_CONFIG_0, pub debug_config_1: DEBUG_CONFIG_1, pub debug_config_2: DEBUG_CONFIG_2, pub debug_config_3: DEBUG_CONFIG_3, pub debug_config_4: DEBUG_CONFIG_4, pub self_test_0: SELF_TEST_0, pub self_test_1: SELF_TEST_1, pub audio_config_0: AUDIO_CONFIG_0, pub audio_config_1: AUDIO_CONFIG_1, pub emac_config: EMAC_CONFIG, pub sdh_config: SDH_CONFIG, pub permit_config: PERMIT_CONFIG, pub psram_config: PSRAM_CONFIG, pub wifi_pll_config_0: WIFI_PLL_CONFIG_0, pub wifi_pll_config_1: WIFI_PLL_CONFIG_1, pub wifi_pll_config_2: WIFI_PLL_CONFIG_2, pub wifi_pll_config_3: WIFI_PLL_CONFIG_3, pub wifi_pll_config_4: WIFI_PLL_CONFIG_4, pub wifi_pll_config_5: WIFI_PLL_CONFIG_5, pub wifi_pll_config_6: WIFI_PLL_CONFIG_6, pub wifi_pll_config_7: WIFI_PLL_CONFIG_7, pub wifi_pll_config_8: WIFI_PLL_CONFIG_8, pub wifi_pll_config_9: WIFI_PLL_CONFIG_9, pub wifi_pll_config_10: WIFI_PLL_CONFIG_10, pub wifi_pll_config_11: WIFI_PLL_CONFIG_11, pub wifi_pll_config_12: WIFI_PLL_CONFIG_12, pub wifi_pll_config_13: WIFI_PLL_CONFIG_13, pub wifi_pll_config_14: WIFI_PLL_CONFIG_14, pub ldo18: LDO18, pub gpio_config: [GPIO_CONFIG; 35], pub gpio_input: [GPIO_INPUT; 2], pub gpio_output: [GPIO_OUTPUT; 2], pub gpio_set: [GPIO_SET; 2], pub gpio_clear: [GPIO_CLEAR; 2], /* private fields */
}
Expand description

Register block

Fields§

§chip_inform: CHIP_INFORM

0x00 - Chip information register

§interrupt_state: [INTERRUPT_STATE; 2]

0x50..0x58 - Chip interrupt state register

§interrupt_mask: [INTERRUPT_MASK; 2]

0x58..0x60 - Chip interrupt mask register

§interrupt_clear: [INTERRUPT_CLEAR; 2]

0x60..0x68 - Chip clear interrupt register

§clock_config_0: CLOCK_CONFIG_0

0x90 - System clock configuration register 0

§clock_config_1: CLOCK_CONFIG_1

0x94 - System clock configuration register 1

§bus_config_0: BUS_CONFIG_0

0xa0 - Bus configuration register 0

§gpadc_config: GPADC_CONFIG

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

§gpdac_config_0: GPDAC_CONFIG_0

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

§gpdac_config_1: GPDAC_CONFIG_1

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

§gpdac_config_2: GPDAC_CONFIG_2

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

§gpdac_config_3: GPDAC_CONFIG_3

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

§dma_config_0: DMA_CONFIG_0

0x130 - Direct Memory Access configuration 0

§dma_config_1: DMA_CONFIG_1

0x134 - Direct Memory Access configuration 1

§dma_config_2: DMA_CONFIG_2

0x138 - Direct Memory Access configuration 2

§ir_config_0: IR_CONFIG_0

0x140 - Infrared configuration register 0

§ir_config_1: IR_CONFIG_1

0x144 - Infrared configuration register 1

§uart_config: UART_CONFIG

0x150 - Universal Asynchronous Receiver/Transmitter configuration

§uart_signal_0: UART_SIGNAL_0

0x154 - Universal Asynchronous Receiver/Transmitter signal configuration 0

§uart_signal_1: UART_SIGNAL_1

0x158 - Universal Asynchronous Receiver/Transmitter signal configuration 1

§flash_config: FLASH_CONFIG

0x170 - Serial flash configuration

§i2c_config: I2C_CONFIG

0x180 - Inter-Integrated Circuit bus configuration

§i2s_config: I2S_CONFIG

0x190 - Inter-IC Sound configuration

§spi_config: SPI_CONFIG

0x1b0 - Serial Peripheral Interface configuration

§pwm_config: PWM_CONFIG

0x1e0 - Pulse-Width configuration

§dbi_config: DBI_CONFIG

0x1f0 - MIPI Display Bus Interface clock configuration

§digit_clock_0: DIGIT_CLOCK_0

0x250 - Digital clock configuration 0

§digit_clock_1: DIGIT_CLOCK_1

0x254 - Digital clock configuration 1

§digit_clock_2: DIGIT_CLOCK_2

0x258 - Digital clock configuration 2

§radio_config: RADIO_CONFIG

0x260 - Radio frequency configuration register

§debug_config_0: DEBUG_CONFIG_0

0x2e0 - Debug configuration register 0

§debug_config_1: DEBUG_CONFIG_1

0x2e4 - Debug configuration register 1

§debug_config_2: DEBUG_CONFIG_2

0x2e8 - Debug configuration register 2

§debug_config_3: DEBUG_CONFIG_3

0x2ec - Debug configuration register 3

§debug_config_4: DEBUG_CONFIG_4

0x2f0 - Debug configuration register 4

§self_test_0: SELF_TEST_0

0x300 - Machine Built-in Self Test register 0

§self_test_1: SELF_TEST_1

0x304 - Machine Built-in Self Test register 1

§audio_config_0: AUDIO_CONFIG_0

0x340 - Audio configuration register 0

§audio_config_1: AUDIO_CONFIG_1

0x344 - Audio configuration register 1

§emac_config: EMAC_CONFIG

0x390 - Ethernet Media Access Control configuration

§sdh_config: SDH_CONFIG

0x430 - Secure Digital host configuration

§permit_config: PERMIT_CONFIG

0x490 - Permission control peripheral configuration

§psram_config: PSRAM_CONFIG

0x620 - Pseudo Static Random-Access Memory configuration

§wifi_pll_config_0: WIFI_PLL_CONFIG_0

0x810 - Wireless Fidelity Phase-Locked Loop configuration 0

§wifi_pll_config_1: WIFI_PLL_CONFIG_1

0x814 - Wireless Fidelity Phase-Locked Loop configuration 1

§wifi_pll_config_2: WIFI_PLL_CONFIG_2

0x818 - Wireless Fidelity Phase-Locked Loop configuration 2

§wifi_pll_config_3: WIFI_PLL_CONFIG_3

0x81c - Wireless Fidelity Phase-Locked Loop configuration 3

§wifi_pll_config_4: WIFI_PLL_CONFIG_4

0x820 - Wireless Fidelity Phase-Locked Loop configuration 4

§wifi_pll_config_5: WIFI_PLL_CONFIG_5

0x824 - Wireless Fidelity Phase-Locked Loop configuration 5

§wifi_pll_config_6: WIFI_PLL_CONFIG_6

0x828 - Wireless Fidelity Phase-Locked Loop configuration 6

§wifi_pll_config_7: WIFI_PLL_CONFIG_7

0x82c - Wireless Fidelity Phase-Locked Loop configuration 7

§wifi_pll_config_8: WIFI_PLL_CONFIG_8

0x830 - Wireless Fidelity Phase-Locked Loop configuration 8

§wifi_pll_config_9: WIFI_PLL_CONFIG_9

0x834 - Wireless Fidelity Phase-Locked Loop configuration 9

§wifi_pll_config_10: WIFI_PLL_CONFIG_10

0x838 - Wireless Fidelity Phase-Locked Loop configuration 10

§wifi_pll_config_11: WIFI_PLL_CONFIG_11

0x83c - Wireless Fidelity Phase-Locked Loop configuration 11

§wifi_pll_config_12: WIFI_PLL_CONFIG_12

0x840 - Wireless Fidelity Phase-Locked Loop configuration 12

§wifi_pll_config_13: WIFI_PLL_CONFIG_13

0x844 - Wireless Fidelity Phase-Locked Loop configuration 13

§wifi_pll_config_14: WIFI_PLL_CONFIG_14

0x848 - Wireless Fidelity Phase-Locked Loop configuration 14

§ldo18: LDO18

0x884 - 1.8-V Low Dropout Linear Regulator configuration

§gpio_config: [GPIO_CONFIG; 35]

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

§gpio_input: [GPIO_INPUT; 2]

0xac4..0xacc - Read value from Generic Purpose Input/Output pins

§gpio_output: [GPIO_OUTPUT; 2]

0xae4..0xaec - Write value to Generic Purpose Input/Output pins

§gpio_set: [GPIO_SET; 2]

0xaec..0xaf4 - Set pin output value to high

§gpio_clear: [GPIO_CLEAR; 2]

0xaf4..0xafc - Set pin output value to low

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>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

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.