pub fn store_image_mcu<I: Iterator<Item = [u8; N]>, const N: usize>(
        &mut self,
        blocks: I,
        bank: image::Bank<MCUF::Address>,
    ) -> Result<(), Error> {
        if bank.bootable {
            Err(Error::BankInvalid)
        } else {
            self.mcu_flash.write_from_blocks(bank.location, blocks)?;
            Ok(())
        }
    }
/// Writes a firmware image to a MCU flash bank that is not bootable. Takes an iterator over byte
/// blocks, to easily interface with serial or network protocols like XMODEM or TCP/IP
/// where information is received in chunks.
Writes a firmware image to a MCU flash bank that is not bootable. Takes an iterator over byte
blocks, to easily interface with serial or network protocols like XMODEM or TCP/IP
where information is received in chunks.
Writes a firmware image to a MCU flash bank that is not bootable . Takes an iterator over byte blocks to easily interface with serial or network protocols like XMODEM or TCP / IP where information is received in chunks .
pub fn store_image_mcu<I: Iterator<Item = [u8; N]>, const N: usize>(
        &mut self,
        blocks: I,
        bank: image::Bank<MCUF::Address>,
    ) -> Result<(), Error> {
        if bank.bootable {
            Err(Error::BankInvalid)
        } else {
            self.mcu_flash.write_from_blocks(bank.location, blocks)?;
            Ok(())
        }
    }
pub fn store_image_mcu < I : Iterator < Item = [ u8 ; N ] > , const N : usize > ( & mut self , blocks : I , bank : image :: Bank < MCUF :: Address > , ) -> Result < ( ) , Error > { if bank . bootable { Err ( Error :: BankInvalid ) } else { self . mcu_flash . write_from_blocks ( bank . location , blocks ) ? ; Ok ( ( ) ) } }
Writes a firmware image to a MCU flash bank that is not bootable.
Writes a firmware image to a MCU flash bank that is not bootable .
&mut self
blocks
I
bank
image::Bank<MCUF::Address>
&mut self
blocks
I
bank
image::Bank<MCUF::Address>