ADLINK Technology RTV Series User Manual page 123

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

Advertisement

@ Return Code
0: ERROR_NoError
-7: ERROR_Not_Initialized – Make sure the port has been
initialized by "AngeloRTV_Initial".
-9: ERROR_Invalid_PortNo – Please input the correct
"PortNo" parameter.
@ Example
< VC/BCB >
Use Thread:
HANDLE hEvent=NULL;
void *pThread=NULL;
U32 threadID;
U16 PortNo = 0;
DWORD nObj;
U32 Size_Byte;
U32
Status =0;
I16 ISR_ON=0;
DWORD WINAPI IntThreadProc( LPVOID lpParam )
{
while( ISR_ON )
{
nObj = WaitForSingleObject(hEvent,
INFINITE);
AngeloRTV_Get_Int_Status(PortNo,&Status);
if((Status&0x01)==1)//GPIO
{
}
if((Status>>1&0x01)==1)//Channel 0 of the
nPort
{
}
else if((Status>>2&0x01)==1)//Channel 1 of
the nPort
{
}
else if((Status>>3&0x01)==1)//Channel 2 of
the nPort
{
}
else if((Status>>4&0x01)==1)//Channel 3 of
the nPort
Function Library
113

Advertisement

Table of Contents
loading

Table of Contents