#[repr(C)]pub struct RegisterBlock {Show 27 fields
pub git_id: GIT_ID,
pub clk_freq: CLK_FREQ,
pub pll0: PLL0,
pub pll1: PLL1,
pub pll2: PLL2,
pub pll_lock: PLL_LOCK,
pub rom_error: ROM_ERROR,
pub clk_sel0: CLK_SEL0,
pub clk_sel1: CLK_SEL1,
pub clk_en_cent: CLK_EN_CENT,
pub clk_en_peri: CLK_EN_PERI,
pub soft_reset: SOFT_RESET,
pub peri_reset: PERI_RESET,
pub clk_th0: CLK_TH0,
pub clk_th1: CLK_TH1,
pub clk_th2: CLK_TH2,
pub clk_th3: CLK_TH3,
pub clk_th4: CLK_TH4,
pub clk_th5: CLK_TH5,
pub clk_th6: CLK_TH6,
pub misc: MISC,
pub peri: PERI,
pub spi_sleep: SPI_SLEEP,
pub reset_status: RESET_STATUS,
pub dma_sel0: DMA_SEL0,
pub dma_sel1: DMA_SEL1,
pub power_sel: POWER_SEL,
/* private fields */
}Expand description
Register block
Fields§
§git_id: GIT_ID0x00 - Git short commit id
clk_freq: CLK_FREQ0x04 - System clock base frequency
pll0: PLL00x08 - PLL0 controller
pll1: PLL10x0c - PLL1 controller
pll2: PLL20x10 - PLL2 controller
pll_lock: PLL_LOCK0x18 - PLL lock tester
rom_error: ROM_ERROR0x1c - AXI ROM detector
clk_sel0: CLK_SEL00x20 - Clock select controller 0
clk_sel1: CLK_SEL10x24 - Clock select controller 1
clk_en_cent: CLK_EN_CENT0x28 - Central clock enable
clk_en_peri: CLK_EN_PERI0x2c - Peripheral clock enable
soft_reset: SOFT_RESET0x30 - Soft reset ctrl
peri_reset: PERI_RESET0x34 - Peripheral reset controller
clk_th0: CLK_TH00x38 - Clock threshold controller 0
clk_th1: CLK_TH10x3c - Clock threshold controller 1
clk_th2: CLK_TH20x40 - Clock threshold controller 2
clk_th3: CLK_TH30x44 - Clock threshold controller 3
clk_th4: CLK_TH40x48 - Clock threshold controller 4
clk_th5: CLK_TH50x4c - Clock threshold controller 5
clk_th6: CLK_TH60x50 - Clock threshold controller 6
misc: MISC0x54 - Miscellaneous controller
peri: PERI0x58 - Peripheral controller
spi_sleep: SPI_SLEEP0x5c - SPI sleep controller
reset_status: RESET_STATUS0x60 - Reset source status
dma_sel0: DMA_SEL00x64 - DMA handshake selector
dma_sel1: DMA_SEL10x68 - DMA handshake selector
power_sel: POWER_SEL0x6c - IO Power Mode Select controller