[−][src]Struct debug_probe::flash::builder::FlashBuilder
Methods
impl<'a> FlashBuilder<'a>
[src]
pub fn new(flash_start: u32) -> Self
[src]
pub fn pages(sectors: &Vec<FlashSector>) -> Vec<&FlashPage>
[src]
pub fn pages_mut(sectors: &mut Vec<FlashSector>) -> Vec<&mut FlashPage>
[src]
pub fn add_data(
&mut self,
address: u32,
data: &'a [u8]
) -> Result<(), FlashBuilderError>
[src]
&mut self,
address: u32,
data: &'a [u8]
) -> Result<(), FlashBuilderError>
Add a block of data to be programmed.
Programming does not start until the program
method is called.
pub fn program(
&self,
flash: Flasher,
chip_erase: Option<bool>,
smart_flash: bool,
fast_verify: bool,
keep_unwritten: bool
) -> Result<(), FlashBuilderError>
[src]
&self,
flash: Flasher,
chip_erase: Option<bool>,
smart_flash: bool,
fast_verify: bool,
keep_unwritten: bool
) -> Result<(), FlashBuilderError>
Determine fastest method of flashing and then run flash programming.
Data must have already been added with add_data TODO: Not sure if this works as intended ...
Auto Trait Implementations
impl<'a> Send for FlashBuilder<'a>
impl<'a> Unpin for FlashBuilder<'a>
impl<'a> Sync for FlashBuilder<'a>
impl<'a> RefUnwindSafe for FlashBuilder<'a>
impl<'a> UnwindSafe for FlashBuilder<'a>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,