RegisterBlock

Struct RegisterBlock 

Source
#[repr(C)]
pub struct RegisterBlock {
Show 55 fields pub chip_inform: CHIP_INFORM, pub core_config_16: CORE_CONFIG_16, pub core_config_17: CORE_CONFIG_17, pub core_config_18: CORE_CONFIG_18, pub core_config_19: CORE_CONFIG_19, pub core_config_20: CORE_CONFIG_20, pub core_config_21: CORE_CONFIG_21, pub core_config_22: CORE_CONFIG_22, pub core_config_23: CORE_CONFIG_23, pub core_config_24: CORE_CONFIG_24, pub core_config_25: CORE_CONFIG_25, pub sys_config_0: SYS_CONFIG_0, pub sys_config_1: SYS_CONFIG_1, pub bus_config_0: BUS_CONFIG_0, pub emi_config: EMI_CONFIG, pub rtc_config: RTC_CONFIG, pub adc_config: ADC_CONFIG, pub dac_config_0: DAC_CONFIG_0, pub dac_config_1: DAC_CONFIG_1, pub dac_config_2: DAC_CONFIG_2, pub dac_config_3: DAC_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 quad_config: QUAD_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 test_mode: TEST_MODE, pub test_done: TEST_DONE, pub test_fail: TEST_FAIL, pub audio_config_0: AUDIO_CONFIG_0, pub audio_config_1: AUDIO_CONFIG_1, pub emac_config: EMAC_CONFIG, pub cam_config: CAM_CONFIG, pub gpio_config: [GPIO_CONFIG; 46], 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

§core_config_16: CORE_CONFIG_16

0x50 - Core configuration register 16

§core_config_17: CORE_CONFIG_17

0x54 - Core configuration register 17

§core_config_18: CORE_CONFIG_18

0x58 - Core configuration register 18

§core_config_19: CORE_CONFIG_19

0x5c - Core configuration register 19

§core_config_20: CORE_CONFIG_20

0x60 - Core configuration register 20

§core_config_21: CORE_CONFIG_21

0x64 - Core configuration register 21

§core_config_22: CORE_CONFIG_22

0x68 - Core configuration register 22

§core_config_23: CORE_CONFIG_23

0x6c - Core configuration register 23

§core_config_24: CORE_CONFIG_24

0x70 - Core configuration register 24

§core_config_25: CORE_CONFIG_25

0x74 - Core configuration register 25

§sys_config_0: SYS_CONFIG_0

0x90 - System configuration register 0

§sys_config_1: SYS_CONFIG_1

0x94 - System configuration register 1

§bus_config_0: BUS_CONFIG_0

0xa0 - Bus configuration register 0

§emi_config: EMI_CONFIG

0xe0 - Electromagnetic interference configuration

§rtc_config: RTC_CONFIG

0xf0 - Real-time clock configuration

§adc_config: ADC_CONFIG

0x110 - Analog-to-digital convert configuration

§dac_config_0: DAC_CONFIG_0

0x120 - Digital-to-analog convert configuration 0

§dac_config_1: DAC_CONFIG_1

0x124 - Digital-to-analog convert configuration 1

§dac_config_2: DAC_CONFIG_2

0x128 - Digital-to-analog convert configuration 2

§dac_config_3: DAC_CONFIG_3

0x12c - 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

§quad_config: QUAD_CONFIG

0x1c0 - Quadrature decoder 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 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

§test_mode: TEST_MODE

0x300 - Memory Built-in Self Test mode

§test_done: TEST_DONE

0x308 - Memory Built-in Self Test done state

§test_fail: TEST_FAIL

0x310 - Memory Built-in Self Test fail state

§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 register

§cam_config: CAM_CONFIG

0x420 - ??

§gpio_config: [GPIO_CONFIG; 46]

0x8c4..0x97c - 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 = 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.