/// Write to flash, starting at a given memory location. The memory has to be manually erased
/// before starting a programming operation.
Write to flash, starting at a given memory location. The memory has to be manually erased
before starting a programming operation.
Write to flash starting at a given memory location . The memory has to be manually erased before starting a programming operation .
pub(crate) fn at(handle: &'a mut TargetHandle<T>, data: &'d [u8], address: u32) -> Self {
        let chunk_size = handle.max_program_chunk_size();
        Self {
            handle,
            address,
            chunk_size,
            chunks: data.chunks(chunk_size).enumerate(),
            length: data.len(),
            done: data.is_empty(),
        }
    }
pub ( crate ) fn at ( handle : & ' a mut TargetHandle < T > , data : & ' d [ u8 ] , address : u32 ) -> Self { let chunk_size = handle . max_program_chunk_size ( ) ; Self { handle , address , chunk_size , chunks : data . chunks ( chunk_size ) . enumerate ( ) , length : data . len ( ) , done : data . is_empty ( ) , } }
Write to flash, starting at a given memory location.
Write to flash starting at a given memory location .
handle
&'a mut TargetHandle<T>
data
&'d [u8]
address
u32