protozlg.h

来自「使用PIDUSBD12芯片实现的usb接口程序」· C头文件 代码 · 共 43 行

H
43
字号
/****************************************Copyright (c)**************************************************
**                               广州周立功单片机发展有限公司
**                                     研    究    所
**                                        产品一部 
**
**                                 http://www.zlgmcu.com
**
** 文   件   名: Protozlg.c
** 最后修改日期: 2004年11月15日
** 描        述: USB驱动程序软件包: PDIUSBD12 厂商请求头文件
** 版	     本: V5.0
**********************************************************************************************************/

#ifndef __PROTOZLG_H__
#define __PROTOZLG_H__

/*
   //*************************************************************************
   // USB vendor device requests
   //*************************************************************************
*/
#define SETUP_DMA_REQUEST 		0x0471
#define GET_FIRMWARE_VERSION    0x0472
#define GET_SET_TWAIN_REQUEST   0x0473
#define GET_BUFFER_SIZE		    0x0474

//计数器
typedef union _byte_count 
{
	struct _bytes
	{
		unsigned char high;
		unsigned char low;
	}byte;
	unsigned int word;
}byte_count ;

extern byte_count byte_cnt;
extern void read_write_register(void);
extern code void (*VendorDeviceRequest[])(void);

#endif

⌨️ 快捷键说明

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