Callback & Thread Functions - ADLINK Technology RTV Series User Manual

Multi-channel real-time video frame grabber series
Table of Contents

Advertisement

5.7 Callback & Thread Functions
@ Name
AngeloRTV_Get_Int_Status (PortNo, IntStatus)
Gets the current interrupt status
AngeloRTV_Set_Int_Event (PortNo,hEvent)
Assigns the windows interrupt event
AngeloRTV_Set_Callback(PortNo, CallBackProc)
Sets the callback function when an interrupt is generated
@ Description
AngeloRTV_Get_Int_Status:
Allows users to identify what caused an interrupt signal.
Bit 0: GPIO interrupt, when Digital input channel is changed.
Bit 1: Channel 0 Image ready
Bit 2: Channel 1 Image ready
Bit 3: Channel 2 Image ready
Bit 4: Channel 3 Image ready
Note:
There are four channels in each port, the default channel is
channel 0.
AngeloRTV_Set_Int_Event:
Links interrupt events. Users only have to declare the "hEvent"
variable and call this function to DLL, the DLL will link the event
and interrupt automatically.
AngeloRTV_Set_Callback:
Links the callback function when an interrupt is generated to host
pc.
Note:
There are two ways to use the synchronization mechanism,
one is the callback function, and the other is the thread func-
tion.
@ Syntax
C/C++ (Windows/CE.NET)
I16 AngeloRTV_Get_Int_Status(U16 PortNo,U32
*IntStatus);
I16 AngeloRTV_Set_Int_Event(U16 PortNo,HANDLE*
hEvent);
Function Library
111

Advertisement

Table of Contents
loading

Table of Contents