Moxa DA-SP08-I-DB [37/45] Get irig b board hardware id

Moxa DA-SP08-I-DB [37/45] Get irig b board hardware id
DA-IRIGB-4DIO-PCI104-EMC4 Module Driver and Utility Installation
3-2
Get IRIG-B Board Hardware ID
MXIRIG_API BOOL mxIrigbGetHardwareID (HANDLE hDev, PDWORD pdwHwId)
Parameters
in hDev The handle for value returned from the mxIrigbOpen function.
out pdwHwId The pointer for the hardware ID
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.
Open IRIG-B Device
MXIRIG_API HANDLE mxIrigbOpen (int index)
Parameters
in index The device number (starting from 0).
Returns
Returns the pointer to the device handle. A return value is of -1 indicates a failure.
Close IRIG-B Device
MXIRIG_API void mxIrigbClose (HANDLE hDev)
Parameters
in hDev A valid handle value returned from the mxIrigbOpen function.
Returns
None.
Get Digital Input Signal
MXIRIG_API BOOL mxIrigbGetDigitalInputSignal (HANDLE hDev, DWORD dwPort, PDWORD pValue)
Parameters
in hDev A valid handle value returned from the mxIrigbOpen function.
in dwPort The port number (starting from 0).
out pValue The port data (1:HIGH, 0:LOW).

Содержание

Скачать