Cyclone Automated Control Package
36
4.5.6 add_image_to_cyclone
function add_image_to_cyclone(cyclonepromaxhandle : longword;
aFile : pchar) : longword;
unsigned long add_image_to_cyclone(unsigned long
cyclonepromaxhandle, char *aFile);
UInt32 add_image_to_cyclone(UInt32 cyclonepromaxhandle, String
aFile);
Adds a specified stand-alone programming image into the selected media
type. (Cyclone internal Flash or external memory card) The image files
have a .SAP file extension and are created with the Cyclone Image
Creation Utility. If the Cyclone‟s storage limits are reached, this routine will
return an error. The user may wish to erase all existing images first, using
the “erase_all_cyclone_images” function.
@param
cyclonepromaxhandle
The handle of the Cyclone unit that will
accept the new image
@param aFile
A pointer to a null-terminated character
string which contains the full path to the
.SAP file to be added.
@returnvalue
The image number of the image that was
just added. This number is used as the
“image_id” parameter for some function
calls.
A return value of “0” indicates an error has
occurred during the process