[][src]Struct probe_rs::flash::builder::FlashBuilder

pub struct FlashBuilder<'a> { /* fields omitted */ }

Methods

impl<'a> FlashBuilder<'a>[src]

pub fn new() -> Self[src]

Creates a new FlashBuilder with empty data.

pub fn pages(sectors: &[FlashSector]) -> Vec<&FlashPage>[src]

Iterate over all pages in an array of FlashSectors.

pub fn add_data(
    &mut self,
    address: u32,
    data: &'a [u8]
) -> Result<(), FlashBuilderError>
[src]

Add a block of data to be programmed.

Programming does not start until the program method is called.

pub fn program(
    &self,
    flash: Flasher,
    do_chip_erase: bool,
    restore_unwritten_bytes: bool,
    progress: &FlashProgress
) -> Result<(), FlashBuilderError>
[src]

Program a binary into the flash.

If restore_unwritten_bytes is true, all bytes of a sector, that are not to be written during flashing will be read from the flash first and written again once the sector is erased.

Trait Implementations

impl<'a> Default for FlashBuilder<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for FlashBuilder<'a>

impl<'a> Send for FlashBuilder<'a>

impl<'a> Sync for FlashBuilder<'a>

impl<'a> Unpin for FlashBuilder<'a>

impl<'a> UnwindSafe for FlashBuilder<'a>

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.