intfunc.h

来自「嵌入式系统设计与开发实例详解--基于ARM的应用(采用ARM7TDMI内核的、三」· C头文件 代码 · 共 74 行

H
74
字号
/*----------------------------------------------------------------------------
 *  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 + =
减小字号Ctrl + -
显示快捷键?