mpiControlFlashSaveToFile
Definition
MPI_DECL1 MPI_RESULT MPI_DECL2 mpiControlFlashSaveToFile(MPIControl control, const char *fileName, MPIControlFlashFileType fileType);
Required Header: stdmpi.h
Change History: Added in 04.00.
Description
mpiControlFlashSaveToFile saves firmware images to a binary file specified by filename.
control | The controller that will have its firmware image saved to disk. |
---|---|
filesName | The name of the file to which the firmware image is saved. |
filesType | The type of firmware image to save. |
Return Values |
---|
MPIMessageOK |
Sample Code
void saveMyFirmware (MPIControl control) { MPI_RESULT returnValue = mpiControlFlashSaveAll( control, NULL, /* Do not monitor progress */ NULL); msgCHECK(returnValue); returnValue = mpiControlFlashSaveToFile( control, "myFirmware.bin", MPIControlFlashFileTypeCodeAndData); msgCHECK(returnValue); }
See Also
mpiControlFlashLoadFromFile | MPIControlFlashFileType