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

📄 intfunc.h

📁 杭州利宇泰公司的基于44B0的ARMSys开发板上的大量源代码
💻 H
字号:
/*----------------------------------------------------------------------------
 *  Copyright (c) 2001 by National Semiconductor Corporation
 *  National Semiconductor Corporation
 *  2900 Semiconductor Drive
 *  Santa Clara, California 95051
 *
 *  All rights reserved
 *
 *<<<-------------------------------------------------------------------------
 * File Contents:
 *	IntFunc.h
 *
 *  Project: USB Demo Application
 *  Author : Yan Nosovitsky
 *  Date   : Dec 2001
 *----------------------------------------------------------------------->>>*/
// IntFunc.h: interface for the BulkFunc class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_INTFUNC_H__A677DDD3_055F_11D4_915B_0060972A7504__INCLUDED_)
#define AFX_INTFUNE_H__A677DDD3_055F_11D4_915B_0060972A7504__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "USBDriver.h"
#include "CommonDefines.h"
#include "command_api.h"


class IntFunc 
{
public:
	IntFunc(CDialog *curIntTab );
	~IntFunc();

	bool ProcessIntTest(int intNum,int interval, int pipeNum);
	CString GetDetails();
	void StopLastProcess();
	int CheckPipes();
	CString getPipeInfo(int num);



private:
	static UINT ReadIntThread(LPVOID);
	static UINT ProcessIntThread(LPVOID);
	static UINT PrintMessage(LPVOID);

	InterruptCommand command;
	int interruptNum;
	int restToDo;
	int readTime;
	int numOfErrors;
	int wasTransferred;
	int waitForNum;
	int intInterval;
	CDialog *intTab;
	BOOL readThreadRun;
	BOOL testRun;
	CWinThread* processThread;
	CWinThread* readThread;
	int numOfPipes;
	int readPipe;
	int writePipe;
	WD_USB_PIPE_INFO Pipe[WD_USB_MAX_PIPE_NUMBER];


};

#endif // AFX_INTFUNE_H__A677DDD3_055F_11D4_915B_0060972A7504__INCLUDED_

⌨️ 快捷键说明

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