[−][src]Struct probe_rs::config::RawFlashAlgorithm
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]
&self,
ram_region: &RamRegion,
architecture: Architecture
) -> Result<FlashAlgorithm, FlashError>
Constructs a complete flash algorithm, tailored to the flash and RAM sizes given.
Trait Implementations
impl Clone for RawFlashAlgorithm
[src]
fn clone(&self) -> RawFlashAlgorithm
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RawFlashAlgorithm
[src]
impl Default for RawFlashAlgorithm
[src]
fn default() -> RawFlashAlgorithm
[src]
impl<'de> Deserialize<'de> for RawFlashAlgorithm
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for RawFlashAlgorithm
[src]
Auto Trait Implementations
impl RefUnwindSafe for RawFlashAlgorithm
impl Send for RawFlashAlgorithm
impl Sync for RawFlashAlgorithm
impl Unpin for RawFlashAlgorithm
impl UnwindSafe for RawFlashAlgorithm
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,