[][src]Struct probe_rs::config::RawFlashAlgorithm

pub struct RawFlashAlgorithm {
    pub name: Cow<'static, str>,
    pub description: Cow<'static, str>,
    pub default: bool,
    pub instructions: Cow<'static, [u8]>,
    pub pc_init: Option<u32>,
    pub pc_uninit: Option<u32>,
    pub pc_program_page: u32,
    pub pc_erase_sector: u32,
    pub pc_erase_all: Option<u32>,
    pub data_section_offset: u32,
    pub flash_properties: FlashProperties,
}

Fields

name: Cow<'static, str>

The name of the flash algorithm.

description: Cow<'static, str>

The description of the algorithm.

default: bool

Whether this flash algorithm is the default one or not.

instructions: Cow<'static, [u8]>

List of 32-bit words containing the position-independent code for the algo.

pc_init: Option<u32>

Address of the Init() entry point. Optional.

pc_uninit: Option<u32>

Address of the UnInit() entry point. Optional.

pc_program_page: u32

Address of the ProgramPage() entry point.

pc_erase_sector: u32

Address of the EraseSector() entry point.

pc_erase_all: Option<u32>

Address of the EraseAll() entry point. Optional.

data_section_offset: u32

The offset from the start of RAM to the data section.

flash_properties: FlashProperties

The properties of the flash on the device.

Implementations

impl RawFlashAlgorithm[src]

pub fn assemble(
    &self,
    ram_region: &RamRegion,
    architecture: Architecture
) -> Result<FlashAlgorithm, FlashError>
[src]

Constructs a complete flash algorithm, tailored to the flash and RAM sizes given.

Trait Implementations

impl Clone for RawFlashAlgorithm[src]

impl Debug for RawFlashAlgorithm[src]

impl Default for RawFlashAlgorithm[src]

impl<'de> Deserialize<'de> for RawFlashAlgorithm[src]

impl Serialize for RawFlashAlgorithm[src]

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.