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

📄 usbreader.h

📁 PW芯片方案Flash ROM烧写程序
💻 H
字号:
//---------------------------------------------------------------------------
// Pixelworks Inc. Company Confidential Strictly Private
//
// $Archive: $
// $Revision: 1.1.1.1 $
// $Author: KevinM $
// $Date: 2003/09/29 18:19:04 $
//
// --------------------------------------------------------------------------
// >>>>>>>>>>>>>>>>>>>>>>>>> COPYRIGHT NOTICE <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
// --------------------------------------------------------------------------
// Copyright 1997-2003 (c) Pixelworks Inc.
//
// Pixelworks owns the sole copyright to this software. Under international 
// copyright laws you (1) may not make a copy of this software except for 
// the purposes of maintaining a single archive copy, (2) may not derive
// works herefrom, (3) may not distribute this work to others. These rights 
// are provided for information clarification, other restrictions of rights 
// may apply as well.
//
// This is an unpublished work.
// --------------------------------------------------------------------------
// >>>>>>>>>>>>>>>>>>>>>>>>>>>> WARRANTEE <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
// --------------------------------------------------------------------------
// Pixelworks Inc. MAKES NO WARRANTY OF ANY KIND WITH REGARD TO THE USE OF
// THIS SOFTWARE, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
// THE IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR
// PURPOSE.
// --------------------------------------------------------------------------
//
// UsbReader.h: interface for the CUsbReader class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_USBREADER_H__B98C1980_9DF2_11D4_A299_005004D11692__INCLUDED_)
#define AFX_USBREADER_H__B98C1980_9DF2_11D4_A299_005004D11692__INCLUDED_

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

#include "UsbIoReader.h"
#include "afxmt.h"
#include "CircularBuffer.h"

#define USB_BUF_SIZE 4096

class CUsbReader : public CUsbIoReader  
{
public:
					CUsbReader();
	virtual			~CUsbReader();

	int				m_nMaxPacketSize;

	int				FetchBytes(LPBYTE pBytes, int nCount, char cMarker = 0x00);

	void			Flush();

	int				GetAvailData();

	CCircularBuffer CircBuf;
protected:

	void ProcessData(CUsbIoBuf* Buf);
	void BufErrorHandler(CUsbIoBuf* Buf);
};

#endif // !defined(AFX_USBREADER_H__B98C1980_9DF2_11D4_A299_005004D11692__INCLUDED_)

⌨️ 快捷键说明

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