INT32S DRV_FDICheck( PTR_T DeviceHandle, INT32U * pdwStatus, INT32U * pdwRetrieved);
On the device indicated by the DeviceHandle, it retrieves the current status of the FDI (Fast Digital Input) function.
This function is used to check when the data in the higher or lower part of the sampling buffer is full, in order to avoid buffer overrun.
This function is used in PCI-1755.
| Name | Direction | Range | Description |
| DeviceHandle | input | default | The pointer retrieved from the DRV_DeviceOpen which specifies the target device. |
| pdwStatus | output | default | The current conversion status: bit0: running(1)/stopped(0), only reflects whether the operation is running. It does not indicate whether the operation is normal or abnormal. bit4: not overrun(0)/overrun(1), indicates whether the data has not been transferred in time. If this occurs, the data may have been lost. bit9,8: not ready(00)/first half ready(10)/second half ready(11), indicates that the buffer data needs to be transferred immediately. other bits: reserved. The DRV_ClearFlag can be used to clear the underrun status. |
| pdwRetrieved | output | default | The input data count in the buffer. Indicates the input data count in current buffer. Since the FDI channels of PCI-1755 can be set to 8, 16 or 32 bits, the data size of each depends on FDI channel configuration and the scale may be byte, word or double word. If the mode is set to cyclic when calling the DRV_FDIStart, this value will be cleared to NULL after each circulation. When the two halves of the buffer are full, this value will be the input data count (dwCount) configured by calling DRV_FDIStart. |
| 1. SUCCESS | Successful. |
| 2. InvalidDriverHandle | The DeviceHandle is NULL. |
| 3. Other value | Please reference ErrorCodes |