FR CUBE API
5
50
FR_SendFile()
Prototype
FR_COMM_ERR WINAPI FR_SendFileA (FR_COMM_HANDLE handle, const char
*protocol, const char *src_filename, const char *dst_path, bool force_transfer,
FR_FileTransferProgressProc progress);
FR_COMM_ERR WINAPI FR_SendFileW (FR_COMM_HANDLE handle, const wchar_t
*protocol, const wchar_t *src_filename, const wchar_t *dst_path, bool force_ transfer,
FR_FileTransferProgressProc progress);
Description
Sends a file to the instrument’s internal memory.
Return Value
0 The function call was successful.
!=0 The function call was unsuccessful.
Call the FR_GetLastErrorMessage() function to get error
information.
Parameters
handle Communication handle returned by the
FR_OpenCommPort() function.
protocol Transfer protocol. Must be “ymodem”.
src_filename The source full filename.
dst_path The remote instrument file system path where to store
the file.
force_transfer If TRUE, file transfer will be executed even if a file with
the same name and CRC exists on the instrument;
if FALSE, file transfer will be executed only if necessary.
progress Address of a callback function that will receive progress
information, or 0 if not used.
http://smh-tech.com.cn sales@smh-tech.com.cn +86-15250087885