DRV_CntrGetLatestEventCounterValue

INT32S CntrGetLatestEventCounterValue (
   PTR_T   DriverHandle, 
   INT32U  dwEventID, 
   BYTE    *pBuffer,
   INT32U  dwLength);

Purpose

Retrieve the stored input data of the specified counter event's most recent occurrence.

Parameters

CFG_DoPortCount
Name Direction Range Description
DriverHandle Input default assigned by DRV_DeviceOpen
dwEventID Input default counter event ID.
pBuffer Output default pointer to the user buffer to receive the counter data.
dwLength Input default Length of the user buffer.

Return

1. 0

Successful.

2. InvalidDeviceHandle

The DeviceHandle is NULL.

3. InvalidInputParam

The pBuffer or dwLength is invalid.

4. InvalidEventType

The Counter event ID(dwEventID) is not supported.