Advantech DVP-1020 Скачать руководство пользователя страница 40

 
 

 

40

Adv_DVPAPI_SetNewFrameCallback 

 

Syntax 

int Adv_DVPAPI_SetNewFrameCallback(int BoardID, 
int PortID, int callback) 
 

Parameters 

BoardID: 

Specifies the board ID 
number(0~3). 

PortID: 

Specifies the port ID number(0~3). 

callback:  

Callback function. 

Callback fumction type: 
int (int lParam, int nID, int BoardID, int PortID, int 
VMux, int bufsize, BYTE* buf); 
 

Return Value 

SUCCEEDED:   Function 

succeeded. 

BOARDIDERROR: 

Invalid board ID.   

PORTIDERROR:  

Invalid 

port 

ID. 

SDKINITFAILED: SDK not initialized. 

 
Description 

This function sets a callback function to SDK. When 
new frame arrived, messages and frame information 
will be sent to callback function.   

 
See Also 

Содержание DVP-1020

Страница 1: ...i DVP 1020 4 Channel PC 104 Plus Video Capture Module...

Страница 2: ...may result from its use Acknowledgments IBM and PC are trademarks of International Business Machines Corporation MS DOS Windows Microsoft Visual C and Visual BASIC are trade marks of Microsoft Corpor...

Страница 3: ...2 2 Method 31 Adv_DVPAPI_CreateSDKInstence 31 Adv_DVPAPI_GetNumberOfDevices 32 Adv_DVPAPI_InitSDK 33 Adv_DVPAPI_CloseSDK 34 Adv_DVPAPI_Start 35 Adv_DVPAPI_Stop 37 Adv_DVPAPI_GetCapState 38 Adv_DVPAPI...

Страница 4: ...OGetData 58 Adv_DVPAPI_GPIOSetData 59 Adv_DVPAPI_GetWDTTimeout 60 Adv_DVPAPI_SetWDTTimeout 61 Adv_DVPAPI_GetUCFlag 62 Adv_DVPAPI_SetUCFlag 64 Adv_DVPAPI_GetPoweronEvent 65 Adv_DVPAPI_GetAlarm 66 Adv_D...

Страница 5: ...5 CHAPTER 1 General Information...

Страница 6: ...an auto wake up function that provides 10 sets of time settings From an off state two digital trigger pins can also remotely trigger this function DVP 1020 also has a built in watchdog timer to reset...

Страница 7: ...idge PC 104 Plus CONEXANT 878A CONEXANT 878A Programmable software protectionkey Autowake up function Micro controller CONEXANT 878A CONEXANT 878A 4 channel D1 input 16 channel input by shared frame F...

Страница 8: ...ideo capture module X 1 Utility CD X 1 Standby power wire p n 1700000575 X 1 Connection wire for WDT p n 1703020303 X 1 Connection wire for power switch p n 1703020303 X 1 Wire for video input p n 170...

Страница 9: ...9 1 5 Dimensions Figure 1 2 Dimensions...

Страница 10: ...GPIO J6 WOL LED indicator Module ID switch PC 104 Plus slot J2 External trigger input J3 Auto wake up reset J4 Jumper of Auto wake up Security key writer input 1 6 Jumpers connectors location Figure...

Страница 11: ...rd SW1 is the Module ID switch and for Card ID selection Near SW1 the LED indicator is for the following SW1 LED indicator OFF 0 ON 1 1 2 Card 0 0 0 Card 1 0 1 Card 2 1 0 Not allowed 1 1 Table 1 1 Car...

Страница 12: ...iggers through J2 can wake DVP 1020 These external triggers are set by J3 and the pin definitions are shown in Table 1 2 and Figure 1 6 The outer triggers can be sent through pin1 or pin2 and the sign...

Страница 13: ...tion are set by J3 with 8 pins The pins of 5 6 7 8 are for auto wake up function DVP 1020X and 1 2 3 4 are for WDT function Pin definitions are shown in Table 1 3 Figure 1 8 and 1 9 Auto wake up funct...

Страница 14: ...4 8 Reset pins Reset SW Power On pins Power SW On Motherboard On Panel J2 Figure 1 9 Auto wake up reset J3 Pin definition 2 The auto wake up function needs to set up Jumper J4 which is as the followin...

Страница 15: ...heet J5 is the signal input for DVA 1000 1 7 5 Wake on LAN WOL J6 J6 is the connector for power input of wake on LAN and it should be connected to the 5V standby power when users want to enable the au...

Страница 16: ...put The resolution and captured frame rate is related to the performance of the system hardware and limited by PCI bandwidth Please refer to Chapter 1 1 Hardware requirements 1 8 Battery DVP 1020 has...

Страница 17: ...ule ID 5 Place the DVP 1020 into the Motherboard s PC 104 Plus slot and connect corresponding accessories to the DVP 1020 Wires for video input BNC boards Video cables to camera if necessary 6 Replace...

Страница 18: ...ility software you should read the instructions in this chapter carefully before you attempt installation The device drivers for the DVP 1020 are located on the utility CD Review the relevant operatin...

Страница 19: ...driver CD into your system s CD ROM drive In a few seconds the software installation main menu appears Move the mouse cursor over the Manual button under the SETUP heading a message pops up telling y...

Страница 20: ...20 2 Please read the following License Agreement Press the PAGE DOWN key to see the rest of the agreement and Click Yes to continue the installation...

Страница 21: ...21 3 Choose destination location on your system disc then click Next when you see the following message...

Страница 22: ...22 4 Click Next when you see the following message...

Страница 23: ...23 5 Please fill in the information and Click Next...

Страница 24: ...inish to complete the installation and restart Windows or your computer 7 After installation all the drivers are automatically located at the following place C Program Files ADVANTECH DVP1020 Driver P...

Страница 25: ...25 CHAPTER 2 General Information...

Страница 26: ...dv_DVPAPI_CloseSDK Capture control Adv_DVPAPI_Start Adv_DVPAPI_Stop Adv_DVPAPI_GetCapState Adv_DVPAPI_SetNewFrameCallback Adv_DVPAPI_GetCurFrameBuffer Capture setting Adv_DVPAPI_GetVideoFormat Adv_DVP...

Страница 27: ...Adv_DVPAPI_SetSaturation GPIO Adv_DVPAPI_GPIOGetData Adv_DVPAPI_GPIOSetData Micro Controller Adv_DVPAPI_GetWDTTimeout Adv_DVPAPI_SetWDTTimeout Adv_DVPAPI_GetUCFlag Adv_DVPAPI_SetUCFlag Adv_DVPAPI_GetP...

Страница 28: ...IDStruct Parameters Port 4 Four Port IDs on current board BoardID Board ID Description A stucrt stores DVP1020 ID information TimeStruct typedef struct BYTE second BYTE minute BYTE hour BYTE day BYTE...

Страница 29: ...meStruct AlarmT AlarmStruct Parameters enable Enable or disable alarm setting type Type of alarm HOURLY_ALARM DAILY_ALARM WEEKLY_ALARM MONTHLY_ALARM YEARLY_ALARM ONCE_ALARM AlarmT Time setting for thi...

Страница 30: ...gger1 UCFlag Parameters EnableWDT Enable or disable watch dog timer EnableAlarm Enable or disable alarm EnableTrigger0 Enable or disable trigger0 on board to boot the system EnableTrigger1 Enable or d...

Страница 31: ...ce Syntax int Adv_DVPAPI_CreateSDKInstence void pp Parameters pp A pointer to the SDK Return Value SUCCEEDED Function succeeded PARAMERROR Parameter error SDKINITFAILED Failed to initialize SDK Descri...

Страница 32: ...Devices void Parameters None Return Value Number of Capture Devices in a DVP1020 integrated system Description This function gets number of DVP1020 Capture Devices in the system At most 16 channels fo...

Страница 33: ...ue SUCCEEDED Function succeeded FAILED Function failed BOARDIDERROR Failed to get board ID or duplicate board ID PORTIDERROR Failed to get port ID NODEVICES No devices found Description This function...

Страница 34: ...oseSDK void Parameters None Return Value SUCCEEDED Function succeeded PARAMERROR Parameter error SDKINITFAILED SDK not initialized Description This function cleans all instances of capture devices and...

Страница 35: ...uxes 0 single channel 2 channels mux0 mux1 3 channels mux0 mux1 mux2 4 channels mux0 mux1 mux2 mux3 Main A main window handle hwndPreview A windows handle for display area Return Value SUCCEEDED Funct...

Страница 36: ...36 See Also Adv_DVPAPI_Stop Adv_DVPAPI_GetCapState...

Страница 37: ...er 0 3 Return Value SUCCEEDED Function succeeded FAILED Function failed BOARDIDERROR Invalid board ID PORTIDERROR Invalid port ID SDKINITFAILED SDK not initialized Description This function stops vide...

Страница 38: ...3 PortID Specifies the port ID number 0 3 Return Value BOARDIDERROR Invalid board ID PORTIDERROR Invalid port ID SDKINITFAILED SDK not initialized Description This function gets capture state of a sp...

Страница 39: ...ufSize Frame buffer size buf Frame buffer VMux Video mux Return Value SUCCEEDED Function succeeded FAILED Function failed BOARDIDERROR Invalid board ID PORTIDERROR Invalid port ID PARAMERROR Invalid p...

Страница 40: ...ack Callback function Callback fumction type int int lParam int nID int BoardID int PortID int VMux int bufsize BYTE buf Return Value SUCCEEDED Function succeeded BOARDIDERROR Invalid board ID PORTIDE...

Страница 41: ...pointer to get video format Video_None Video_NTSC_M Video_NTSC_M_J Video_PAL_B Video_PAL_M Video_PAL_N Video_SECAM_B Return Value SUCCEEDED Function succeeded FAILED Function failed BOARDIDERROR Inva...

Страница 42: ...42...

Страница 43: ...o format Video_None Video_NTSC_M Video_NTSC_M_J Video_PAL_B Video_PAL_M Video_PAL_N Video_SECAM_B Return Value SUCCEEDED Function succeeded FAILED Function failed BOARDIDERROR Invalid board ID PORTIDE...

Страница 44: ...ecifies the port ID number 0 3 FrameRate A pointer to get video frame rate Return Value SUCCEEDED Function succeeded FAILED Function failed BOARDIDERROR Invalid board ID PORTIDERROR Invalid port ID PA...

Страница 45: ...alue to set frame rate 0 0 FrameRate 30 0 Default value is 30 0 Return Value SUCCEEDED Function succeeded FAILED Function failed BOARDIDERROR Invalid board ID PORTIDERROR Invalid port ID PARAMERROR In...

Страница 46: ...nter to get video resolution SIZED1 NTSC 720x480 PAL 720x576 SIZEVGA 640x480 SIZEQVGA 320x240 SIZESUBQVGA 160x120 Return Value SUCCEEDED Function succeeded FAILED Function failed BOARDIDERROR Invalid...

Страница 47: ...deo resolution SIZED1 NTSC 720x480 PAL 720x576 SIZEVGA 640x480 SIZEQVGA 320x240 SIZESUBQVGA 160x120 Return Value SUCCEEDED Function succeeded FAILED Function failed BOARDIDERROR Invalid board ID PORTI...

Страница 48: ...SUCCEEDED Function succeeded FAILED Function failed BOARDIDERROR Invalid board ID PORTIDERROR Invalid port ID PARAMERROR Invalid parameter SDKINITFAILED SDK not initialized Description This function g...

Страница 49: ...ue SUCCEEDED Function succeeded FAILED Function failed BOARDIDERROR Invalid board ID PORTIDERROR Invalid port ID PARAMERROR Invalid parameter SDKINITFAILED SDK not initialized Description This functio...

Страница 50: ...s the port ID number 0 3 pnValue A long pointer to get brightness value Return Value SUCCEEDED Function succeeded FAILED Function failed BOARDIDERROR Invalid board ID PORTIDERROR Invalid port ID PARAM...

Страница 51: ...ifies the port ID number 0 3 nValue A value to set brightness 0 100 Return Value SUCCEEDED Function succeeded FAILED Function failed BOARDIDERROR Invalid board ID PORTIDERROR Invalid port ID PARAMERRO...

Страница 52: ...es the port ID number 0 3 pnValue A long pointer to get contrast value Return Value SUCCEEDED Function succeeded FAILED Function failed BOARDIDERROR Invalid board ID PORTIDERROR Invalid port ID PARAME...

Страница 53: ...cifies the port ID number 0 3 nValue A value to set contrast 0 100 Return Value SUCCEEDED Function succeeded FAILED Function failed BOARDIDERROR Invalid board ID PORTIDERROR Invalid port ID PARAMERROR...

Страница 54: ...ifies the port ID number 0 3 pnValue A long pointer to get hue value Return Value SUCCEEDED Function succeeded FAILED Function failed BOARDIDERROR Invalid board ID PORTIDERROR Invalid port ID PARAMERR...

Страница 55: ...pecifies the port ID number 0 3 nValue A value to set hue 0 100 Return Value SUCCEEDED Function succeeded FAILED Function failed BOARDIDERROR Invalid board ID PORTIDERROR Invalid port ID PARAMERROR In...

Страница 56: ...s the port ID number 0 3 pnValue A long pointer to get saturation value Return Value SUCCEEDED Function succeeded FAILED Function failed BOARDIDERROR Invalid board ID PORTIDERROR Invalid port ID PARAM...

Страница 57: ...ifies the port ID number 0 3 nValue A value to set saturation 0 100 Return Value SUCCEEDED Function succeeded FAILED Function failed BOARDIDERROR Invalid board ID PORTIDERROR Invalid port ID PARAMERRO...

Страница 58: ...umber 0 3 Pin GPIO pin value A pointer to get specified pin value Return Value SUCCEEDED Function succeeded FAILED Function failed BOARDIDERROR Invalid board ID PARAMERROR Invalid parameter SDKINITFAI...

Страница 59: ...umber 0 3 Pin GPIO pin nValue A value to set specified pin value Return Value SUCCEEDED Function succeeded FAILED Function failed BOARDIDERROR Invalid board ID PARAMERROR Invalid parameter SDKINITFAIL...

Страница 60: ...WDT A pointer to get watch dog timer state timeout A pointer to get watch dog timer Return Value SUCCEEDED Function succeeded FAILED Function failed BOARDIDERROR Invalid board ID PARAMERROR Invalid pa...

Страница 61: ...bleWDT Enable or disable Watch dog timer timeout A pointer to get watch dog timer Return Value SUCCEEDED Function succeeded FAILED Function failed BOARDIDERROR Invalid board ID PARAMERROR Invalid para...

Страница 62: ...ointer to get alarm enable or disable EnableTrigger0 A pointer to get trigger0 enable or disable EnableTrigger1 A pointer to get trigger1 enable or disable Return Value SUCCEEDED Function succeeded FA...

Страница 63: ...63 UCFlag...

Страница 64: ...eAlarm A value to enable or disable alarm EnableTrigger0 A value to enable or disable trigger0 EnableTrigger1 A value to enable or disable trigger1 Return Value SUCCEEDED Function succeeded FAILED Fun...

Страница 65: ...ID number 0 3 powerEvent A pointer to get system current boot type BY_USER BY_ALARM BY_TRIGGER0 BY_TRIGGER1 Return Value SUCCEEDED Function succeeded FAILED Function failed BOARDIDERROR Invalid board...

Страница 66: ...pecifies the alarm number 0 9 alarm AAlarmStruct pointer to get alarm setting Return Value SUCCEEDED Function succeeded FAILED Function failed BOARDIDERROR Invalid board ID PARAMERROR Invalid paramete...

Страница 67: ...er 0 3 index Specifies the alarm number 0 9 alarm Alarm setting Return Value SUCCEEDED Function succeeded FAILED Function failed BOARDIDERROR Invalid board ID PARAMERROR Invalid parameter SDKINITFAILE...

Страница 68: ...number 0 3 key Input key for check sum value checksum A pointer to get check sum value Return Value SUCCEEDED Function succeeded FAILED Function failed BOARDIDERROR Invalid board ID PARAMERROR Invalid...

Страница 69: ...pecifies the word address 0 127 pData A pointer to get byte value stored in EE Return Value SUCCEEDED Function succeeded FAILED Function failed BOARDIDERROR Invalid board ID PARAMERROR Invalid paramet...

Страница 70: ...Specifies the word address 0 127 pData A value to set the byte value in EE Return Value SUCCEEDED Function succeeded FAILED Function failed BOARDIDERROR Invalid board ID PARAMERROR Invalid parameter S...

Страница 71: ...oard ID number 0 3 time A TimeStruct pointer to get RTC Return Value SUCCEEDED Function succeeded FAILED Function failed BOARDIDERROR Invalid board ID PARAMERROR Invalid parameter SDKINITFAILED SDK no...

Страница 72: ...oard ID number 0 3 time A TimeStruct pointer to set RTC Return Value SUCCEEDED Function succeeded FAILED Function failed BOARDIDERROR Invalid board ID PARAMERROR Invalid parameter SDKINITFAILED SDK no...

Отзывы: