📄 intfunc.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 + -