User's Manual

Engineering Test Software Operation
Rev 28_A Sept 2005
VIA Telecom, Inc. Proprietary
67
Return: True if successful otherwise false. When false is returned the GetLastError function
provides a description of the error.
5.9.1.1.6 GetState
Returns the string representing the current state of the downloader.
BSTR GetState();
Return: The state of the downloader.
5.9.1.1.7 GetProgress
long GetProgress();
Return: Returns a number representing the progress of the transfer. This can be compared to
the value returned by the GetTotal call to determine the percent completion.
5.9.1.1.8 GetTotal
long GetTotal();
Return: Returns the total number of bytes that will be transferred in the current operation.
5.9.1.1.9 Stop
Causes the active transfer to terminate.
BOOL Stop();
Return: True if successful otherwise false. When false is returned the GetLastError function
provides a description of the error.
5.9.1.1.10 IsConnected
BOOL IsConnected();
Return: True if successful otherwise false. When false is returned the GetLastError function
provides a description of the error.
5.9.1.1.11 DataDownload
BOOL DataDownload( BSTR Path, long Address, long Words);
Path: The full pathname of the file to be downloaded.
Address: The address in the CBP memory that the downloaded data should be sent to.
Words: The number of 16 bit words that will be downloaded.
Return: True if successful otherwise false. When false is returned the GetLastError function
provides a description of the error.
5.9.1.1.12 DataUpload
BOOL DataUpload( BSTR Path, long Address, long Words);
Path: The full pathname of the file to be uploaded.
Address: The address in the CBP memory that the uploaded data should be read from.
Words: The number of 16 bit words that will be uploaded.