Cyclone Automated Control Package
37
4.5.7 update_image_with_file
function update_image_with_file(cyclonepromaxhandle : longword;
aFile : pchar) : boolean;
bool update_image_with_file(unsigned long cyclonepromaxhandle,
char *aFile);
bool update_image_with_file(UInt32 cyclonepromaxhandle, String
aFile);
Updates an existing image stored on the selected media type (Cyclone
internal Flash or external memory card) with a new .SAP image file on the
host PC. This function operates properly only if there exists a single image
on the Cyclone.
This call is equiva
lent to calling “erase_all_cyclone_images” followed by
“add_image_to_cyclone”.
@param
cyclonepromaxhandle
The handle of the Cyclone unit that will
have its image updated
@param aFile
A pointer to a null-terminated character
string which contains the full path to the
.SAP file to be added.
@returnvalue
True if the image updated is successful
False otherwise
4.5.8 count_cyclonepromax_images
function count_cyclonepromax_images(cyclonepromaxhandle :
longword) : byte;
unsigned char count_cyclonepromax_images(unsigned long
cyclonepromaxhandle);
byte count_cyclonepromax_images(UInt32 cyclonepromaxhandle);
Returns the number of stand-alone programming images currently stored
in the selected media type (Cyclone internal Flash or external memory
card)
@param
cyclonepromaxhandle
The handle of the Cyclone unit to query for
the image count
@returnvalue
The total number of images stored on the
selected media type