
7.6.1
Functions
UpdStartImageUpdate
Declaration
BOOL UpdStartImageUpdate (LPCTSTR fileName,
BOOL eraseRegPSM, TUpdProgressCallback pCall-
back)
Description
With this method the file handed over by fileName will be stored to the
FLASH memory of the device. If
eraseRegPSM
is set, the registry re-
spectively the PSM will be deleted, after the FLASH has been written
successfully.
If a method is handed over with
pCallback
, the method will be executed
depending of the program progress. The method returns OK or the corre-
sponding error message.
Arguments
LPCTSTR fileName
: Name of the image file
BOOL eraseRegPSM
: Flag for deleting the registry respectively the
PSM
TUpdProgressCallback pCallback
: Callback function for
program progress or 0
UpdPartialImageUpdate
Declaration
BOOL UpdPartialImageUpdate (LPCTSTR fileName,
unsigned long from, unsigned long to, BOOL
eraseRegPSM, TUpdProgressCallback pCallback)
Description
With this method the file handed over by
fileName
will be stored from
the address
from
to the address
to
to the FLASH memory of the device.
If
eraseRegPSM
is set, the registry respectively the PSM will be deleted,
after the FLASH has been written successfully. If a method is handed over
wirh
pCallback
, the method will be executed depending of the program
progress. The method returns OK or the corresponding error message.
Arguments
LPCTSTR fileName
: Name of image file
unsigned long from
: First address for overwriting
unsigned long to
: Addrass, out of overwriting
BOOL eraseRegPSM
: Flag for deleting the registry respectively the
PSM
TUpdProgressCallback pCallback
: Callback function for
program progress or 0
Software
© KEBA 2009
User's Manual V1.50
67