[][src]Struct probe_rs::probe::flash::flasher::FlashAlgorithm

pub struct FlashAlgorithm {
    pub load_address: u32,
    pub instructions: Vec<u32>,
    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 static_base: u32,
    pub begin_stack: u32,
    pub begin_data: u32,
    pub page_buffers: Vec<u32>,
    pub min_program_length: Option<u32>,
    pub analyzer_supported: bool,
    pub analyzer_address: u32,
}

Fields

load_address: u32

Memory address where the flash algo instructions will be loaded to.

instructions: Vec<u32>

List of 32-bit words containing the position-independant 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.

static_base: u32

Initial value of the R9 register for calling flash algo entry points, which determines where the position-independant data resides.

begin_stack: u32

Initial value of the stack pointer when calling any flash algo API.

begin_data: u32

Base address of the page buffer. Used if page_buffers is not provided.

page_buffers: Vec<u32>

An optional list of base addresses for page buffers. The buffers must be at least as large as the region's page_size attribute. If at least 2 buffers are included in the list, then double buffered programming will be enabled.

min_program_length: Option<u32>analyzer_supported: bool

Whether the CRC32-based analyzer is supported.

analyzer_address: u32

RAM base address where the analyzer code will be placed. There must be at least 0x600 free bytes after this address.

Methods

impl FlashAlgorithm[src]

pub fn new(definition: &str) -> Result<Self, AlgorithmParseError>[src]

Trait Implementations

impl Clone for FlashAlgorithm[src]

impl Default for FlashAlgorithm[src]

impl Debug for FlashAlgorithm[src]

impl Serialize for FlashAlgorithm[src]

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

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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