test.cpp

来自「Vxworks 下的视频采集程序」· C++ 代码 · 共 43 行

CPP
43
字号
#include <vxworks.h>
#include<syslib.h>
#include<iostream.h>
#include<stdlib.h>
#include<stdio.h>
#include"w99200.h"
#include"pciini.h"
#include"xdefine.h"
#include"video.h"
//unsigned long _IOBase = 0;     // I/O base for video
    
#define     DeviceID 0x9921    //  no use
#define     VendorID 0x1050   // no use

#define     TESTITEMS      //no use

extern int UTL_LVE(char *szFileName,int dwLimit,int iUseMaster);
extern WORD PCI_GetIOBase ( DWORD * pdwWord );
extern unsigned long _IOBase;   //declaring in the head.h
void pci(void)
{
	//if(pciFindDevice(0x1050,0x9921,0,0,0,0)==OK)
	//printf("ok");
	//else
	//printf("err");
	int ulTmp;
	if ( PCI_GetIOBase(&ulTmp)==FALSE)
        printf ( "\nGetIOBase Error,,;");
        _IOBase = ulTmp;
        printf("%x",ulTmp);
        if(W99200WriteReg( PCR,0x60 )==FALSE){
        	printf("pcr eer");
        	return;} 
  	if(W99200WriteReg(Vint_enable, 0x00)==FALSE){
  		printf("int eer");
  		return;}
  	printf("init begin\n");
	if(UTL_LVE("1.mpg",5,1)==TRUE)
	printf("ok11");
	else
	printf("eeee");
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?