Chapter 2 Software
2-15
2.5.11 HlsbGetInt0Counter、HlsbGetInt1Counter
BOOL HlsbGetInt0Counter(HANDLE hlsbHandle, int mkyNo, BYTE *int0Counter)
BOOL HlsbGetInt1Counter(HANDLE hlsbHandle, int mkyNo, BYTE *int1Counter)
Format
Obtains the information of INT0, 1 interrupt count register retained in internal driver.
Interrupt count is incremented from 0 to 255 (0xFF)and returns to 0.
Function
Parameter
Succeeded : TRUE is returned. Failed : FALSE is returned
You can check the details of error factor by executing HlsbGetLastError.
Return value
HLSB_SUCCESS
Terminated normally
HLSB_ERR_INVALID_HANDLE
Invalid hlsbHandle has been specified.
HLSB_ERR_INVALID_PARAM
mkyNo is out of range.
NULL has been specified to *int0Counter, *int1Counter.
HLSB_ERR_FAILED
The process failed due to unknown reason.
Error code
hlsbHandle
Handle value of HLSB-36PCI2
mkyNo
Select MKY36 whose data to obtain. Input condition is the following.
・1 : MKY36#1, 2:MKY36#2
*int0Counter,*int1Counter
Pointer to the storage byte area of obtained interrupt count