[][src]Struct probe_rs::flash::flasher::Flasher

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

Methods

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

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

pub fn region(&self) -> &FlashRegion[src]

pub fn sector_info(&self, address: u32) -> Option<SectorInfo>[src]

Returns the necessary information about the sector which address resides in if the address is inside the flash region.

pub fn flash_algorithm(&self) -> &FlashAlgorithm[src]

pub fn double_buffering_supported(&self) -> bool[src]

pub fn init<'b, 's: 'b, O: Operation>(
    &'s mut self,
    address: Option<u32>,
    clock: Option<u32>
) -> Result<ActiveFlasher<'b, O>, FlasherError>
[src]

pub fn run_erase<T, E: From<FlasherError>>(
    &mut self,
    f: impl FnOnce(&mut ActiveFlasher<Erase>) -> Result<T, E> + Sized
) -> Result<T, E>
[src]

pub fn run_program<T, E: From<FlasherError>>(
    &mut self,
    f: impl FnOnce(&mut ActiveFlasher<Program>) -> Result<T, E> + Sized
) -> Result<T, E>
[src]

pub fn run_verify<T, E: From<FlasherError>>(
    &mut self,
    f: impl FnOnce(&mut ActiveFlasher<Verify>) -> Result<T, E> + Sized
) -> Result<T, E>
[src]

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

Auto Trait Implementations

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

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

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

impl<'a> Unpin for Flasher<'a>

impl<'a> !UnwindSafe for Flasher<'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.