PISO-CPM100(U) / PCM-CPM100 user manual (ver. 2.02) Dec/03/2012 ----------------- 89
4.5.54. CPM100_GetCyclicSYNCInfo
Description:
This function can get at most 5 SYNC messages information which
have been configured by the function CPM100_SendSYNCMsg. User
can know what SYNC ID had been set.
Syntax:
WORD
CPM100_GetCyclicSYNCInfo(
BYTE
BoardNo,
WORD
*Cobid,
WORD
*Timer,
DWORD
*Times,
BYTE
BlockMode)
Parameter:
BoardNo:
[input] CPM100 board number (0~7).
*Cobid:
[input] COB-ID array. Return most 5 SYNC ID.
*Timer:
[input] 5 WORD array. Each value is the cyclic period of the
SYNC message.
*Times:
[input] 5 Double WORD array. Each one is the SYNC message
sending times that set before.
BlockMode:
[input] 0 means this function is non-block-function, and 1
means this function is block-function. If set this parameter to 1, the
running procedure of the users’ application will be held in the
function until return. If set to 0, this function will return “CPM_
Processing” directly. This function will return its process status
while users apply it with the same “BoardNo” again. If the
procedure is still not complete, it will return “CPM_Wait”.