[][src]Struct probe_rs::flashing::Flasher

pub struct Flasher<'session> { /* fields omitted */ }

A structure to control the flash of an attached microchip.

Once constructed it can be used to program date to the flash. This is mostly for internal use but can be used with ::flash_block() for low, block level access to the flash.

If a higher level access to the flash is required, check out flashing::download_file().

Implementations

impl<'session> Flasher<'session>[src]

pub fn new(
    session: &'session mut Session,
    flash_algorithm: FlashAlgorithm,
    region: FlashRegion
) -> Self
[src]

pub fn flash_block(
    &mut self,
    address: u32,
    data: &[u8],
    progress: &FlashProgress,
    do_chip_erase: bool,
    _fast_verify: bool
) -> Result<()>
[src]

Writes a single block of data to a given address in the flash.

This will not check any physical flash boundaries. You have to make sure that the data is within the flash boundaries. Unexpected things may happen if this is not ensured.

Auto Trait Implementations

impl<'session> !RefUnwindSafe for Flasher<'session>

impl<'session> !Send for Flasher<'session>

impl<'session> !Sync for Flasher<'session>

impl<'session> Unpin for Flasher<'session>

impl<'session> !UnwindSafe for Flasher<'session>

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.