# RegisterBlock in k210_pac::sysctl - Rust
Register block
Keywords: rust, rustlang, rust-lang, RegisterBlock

# Struct k210_pac::sysctl::RegisterBlock

source · [−]

    #[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_ID`

0x00 - Git short commit id

`clk_freq: CLK_FREQ`

0x04 - System clock base frequency

`pll0: PLL0`

0x08 - PLL0 controller

`pll1: PLL1`

0x0c - PLL1 controller

`pll2: PLL2`

0x10 - PLL2 controller

`pll_lock: PLL_LOCK`

0x18 - PLL lock tester

`rom_error: ROM_ERROR`

0x1c - AXI ROM detector

`clk_sel0: CLK_SEL0`

0x20 - Clock select controller 0

`clk_sel1: CLK_SEL1`

0x24 - Clock select controller 1

`clk_en_cent: CLK_EN_CENT`

0x28 - Central clock enable

`clk_en_peri: CLK_EN_PERI`

0x2c - Peripheral clock enable

`soft_reset: SOFT_RESET`

0x30 - Soft reset ctrl

`peri_reset: PERI_RESET`

0x34 - Peripheral reset controller

`clk_th0: CLK_TH0`

0x38 - Clock threshold controller 0

`clk_th1: CLK_TH1`

0x3c - Clock threshold controller 1

`clk_th2: CLK_TH2`

0x40 - Clock threshold controller 2

`clk_th3: CLK_TH3`

0x44 - Clock threshold controller 3

`clk_th4: CLK_TH4`

0x48 - Clock threshold controller 4

`clk_th5: CLK_TH5`

0x4c - Clock threshold controller 5

`clk_th6: CLK_TH6`

0x50 - Clock threshold controller 6

`misc: MISC`

0x54 - Miscellaneous controller

`peri: PERI`

0x58 - Peripheral controller

`spi_sleep: SPI_SLEEP`

0x5c - SPI sleep controller

`reset_status: RESET_STATUS`

0x60 - Reset source status

`dma_sel0: DMA_SEL0`

0x64 - DMA handshake selector

`dma_sel1: DMA_SEL1`

0x68 - DMA handshake selector

`power_sel: POWER_SEL`

0x6c - IO Power Mode Select controller

## Auto Trait Implementations

### impl !RefUnwindSafe for RegisterBlock

### impl Send for RegisterBlock

### impl !Sync for RegisterBlock

### impl Unpin for RegisterBlock

### impl UnwindSafe for RegisterBlock

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

const: unstable · source

#### fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more

source

### impl<T> BorrowMut<T> for T where
T: ?Sized,

const: unstable · source

#### fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more

source

### impl<T> From<T> for T

const: unstable · source

#### fn from(t: T) -> T

Returns the argument unchanged.

source

### impl<T, U> Into<U> for T where
U: From<T>,

const: unstable · 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>,

#### type Error = Infallible

The type returned in the event of a conversion error.

const: unstable · 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>,

#### type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

const: unstable · source

#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.