/// Writes a 4 byte word to a given address in the ATSAM's memory.
Writes a 4 byte word to a given address in the ATSAM's memory.
Writes a 4 byte word to a given address in the ATSAM ' s memory .
fn write_word(&mut self, address: u32, word: u32) -> Result<(), Error> {
        let command = CString::new(format!("W{:08X},{:08X}#", address, word)).unwrap();
        self.bus.write(command.as_bytes()).map(|_| ())
            .map_err(|_| FdfuError::SamBaCommand(format!("write word {:08X} to {:08X}", word, address)).into())
    }
fn write_word ( & mut self , address : u32 , word : u32 ) -> Result < ( ) , Error > { let command = CString :: new ( format ! ( " " address word ) ) . unwrap ( ) ; self . bus . write ( command . as_bytes ( ) ) . map ( | _ | ( ) ) . map_err ( | _ | FdfuError :: SamBaCommand ( format ! ( " " word address ) ) . into ( ) ) }
Writes a 4 byte word to a given address in the ATSAM's memory.
Writes a 4 byte word to a given address in the ATSAM ' s memory .
&mut self
address
u32
word
u32