[−][src]Struct probe_rs::flashing::Flasher
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]
session: &'session mut Session,
flash_algorithm: FlashAlgorithm,
region: FlashRegion
) -> Self
pub fn flash_block(
&mut self,
address: u32,
data: &[u8],
progress: &FlashProgress,
do_chip_erase: bool,
_fast_verify: bool
) -> Result<()>
[src]
&mut self,
address: u32,
data: &[u8],
progress: &FlashProgress,
do_chip_erase: bool,
_fast_verify: bool
) -> Result<()>
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]
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,
pub 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.
pub 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>,