EnableSyncService (FUN)¶
FUNCTION EnableSyncService : ERROR
Enables the SYNC service for a given network. The CANopen Stack uses this function for better SYNC accuracy. If service is enabled SYNC message will be sent by the CAN driver implementation.
Note
Sync Service is not supported by all CAN drivers.
- InOut:
Scope
Name
Type
Comment
Return
EnableSyncServiceERROR.NO_ERROR or appropriate error code
Input
hDriverCAA.HANDLEhandle of CAN interface
cobIDCL2I.COBIDid of SYNC message
xSyncProducerBOOLTRUE: sync producer; FALSE: consumer
xEnableSyncEventBOOLTRUE: fire event
udiSyncCycleUDINTSYNC cycle
udiSyncWindowLengthUDINTSYNC window
udiSyncForewarnTimeUDINTSYNC forewarn time in µs