Moxa DA-UPCI-DK [43/45] Parameters

Moxa DA-SP08-I-TB [43/45] Parameters
DA-IRIGB-4DIO-PCI104-EMC4 Module Driver and Utility Installation
3-8
Parameters
in hDev A valid handle value returned from the mxIrigbOpen function.
in dwSource RTC_SYNC_SOURCE to select the RTC synchronization source.
Returns
If the operation completes successfully, the return value is nonzero. If the operation fails or is pending, the
return value is zero. To display detailed error information, use GetLastError.
Set RTC to IRIG-B Device
MXIRIG_API BOOL mxIrigbSetTime (HANDLE hDev, PRTCTIME pRtcTime)
Parameters
in hDev A valid handle value returned from the mxIrigbOpen function.
in pRtcTime The pointer to a PRTCTIME structure that contains the time value.
Returns
If the operation completes successfully, the return value is nonzero. If the operation fails or is pending, the
return value is zero. To display detailed error information, use GetLastError.
Synchronize System Local Time with IRIG RTC
MXIRIG_API BOOL mxIrigbSyncTime (HANDLE hDev, BOOL bToFrom)
Parameters
in hDev A valid handle value returned from the mxIrigbOpen function.
in pRtbToFrom 0: Sets IRIG RTC to Local Time
1: Sets Local Time to IRIG RTC
Returns
If the operation completes successfully, the return value is nonzero. If the operation fails or is pending, the
return value is zero. To display detailed error information, use GetLastError.
IRIG-B Program Example
To develop an IRIG-B program, follow the procedure listed in the program example.
/* 1. Include the header files */
#include “Public.h”
#include “mxirig.h”

Содержание

Похожие устройства

Скачать