[][src]Struct fomu_pac::reboot::RegisterBlock

#[repr(C)]
pub struct RegisterBlock {
    pub ctrl: CTRL,
    pub addr3: ADDR3,
    pub addr2: ADDR2,
    pub addr1: ADDR1,
    pub addr0: ADDR0,
    // some fields omitted
}

Register block

Fields

ctrl: CTRL

0x00 - Provides support for rebooting the FPGA. You can select which of the four images to reboot to, just be sure to OR the image number with 0xac. For example, to reboot to the bootloader (image 0), write ``0xac``` to this register.

addr3: ADDR3

0x04 - Bits 24-31 of REBOOT_ADDR. This sets the reset vector for the VexRiscv. This address will be used whenever the CPU is reset, for example through a debug bridge. You should update this address whenever you load a new program, to enable the debugger to run mon reset

addr2: ADDR2

0x08 - Bits 16-23 of REBOOT_ADDR.

addr1: ADDR1

0x0c - Bits 8-15 of REBOOT_ADDR.

addr0: ADDR0

0x10 - Bits 0-7 of REBOOT_ADDR.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.