[−][src]Struct probe_rs::flash::flasher::Flasher
Methods
impl<'a> Flasher<'a>
[src]
pub fn new(
session: Session,
flash_algorithm: &'a FlashAlgorithm,
region: &'a FlashRegion
) -> Self
[src]
session: Session,
flash_algorithm: &'a FlashAlgorithm,
region: &'a FlashRegion
) -> Self
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]
&'s mut self,
address: Option<u32>,
clock: Option<u32>
) -> Result<ActiveFlasher<'b, O>, FlasherError>
pub fn run_erase<T, E: From<FlasherError>>(
&mut self,
f: impl FnOnce(&mut ActiveFlasher<Erase>) -> Result<T, E> + Sized
) -> Result<T, E>
[src]
&mut self,
f: impl FnOnce(&mut ActiveFlasher<Erase>) -> Result<T, E> + Sized
) -> Result<T, E>
pub fn run_program<T, E: From<FlasherError>>(
&mut self,
f: impl FnOnce(&mut ActiveFlasher<Program>) -> Result<T, E> + Sized
) -> Result<T, E>
[src]
&mut self,
f: impl FnOnce(&mut ActiveFlasher<Program>) -> Result<T, E> + Sized
) -> Result<T, E>
pub fn run_verify<T, E: From<FlasherError>>(
&mut self,
f: impl FnOnce(&mut ActiveFlasher<Verify>) -> Result<T, E> + Sized
) -> Result<T, E>
[src]
&mut self,
f: impl FnOnce(&mut ActiveFlasher<Verify>) -> Result<T, E> + Sized
) -> Result<T, E>
pub fn flash_block(
self,
address: u32,
data: &[u8],
progress: &FlashProgress,
do_chip_erase: bool,
_fast_verify: bool
) -> Result<(), FlasherError>
[src]
self,
address: u32,
data: &[u8],
progress: &FlashProgress,
do_chip_erase: bool,
_fast_verify: bool
) -> Result<(), FlasherError>
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]
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,