⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test.cpp

📁 Vxworks 下的视频采集程序
💻 CPP
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -