PISO-CPM100(U) / PCM-CPM100 user manual (ver. 2.02) Dec/03/2012 ----------------- 39
4.5.6. CPM100_SetFunctionTimeout
Description:
Sometimes, some function cost more time to complete its task, such
as CPM100_ScanNode. If some API of the CPM100 library never gets
the feedback from the CPM100 until timeout value goes by, the error
code “CPM_Timeout” will be returned. Through this function, the user
can adjust the suitable maximum timeout value of all functions for
application. Default timeout value is 1 second.
Syntax:
void
CPM100_SetFunctionTimeout(
BYTE
BoardNo,
WORD
Timeout)
Parameter:
BoardNo:
[input] CPM100 board number (0~7).
Timeout:
[input] Maximum timeout value of all functions (ms).