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

📄 i2c.h

📁 usb driver, sample for usb driver develop. rised for reference
💻 H
字号:
/***************************************************************************
* C Source Header File:  I2C.H
*
* Copyright 2001 DeVaSys
* All rights are reserved.
* No part of this document may be reproduced, stored, or transmitted in any
* form or by any means without the prior written permission of DeVaSys
*
* Description:
*
* This header contains declarations and defines to support the I2C.C
* source module.
*
* ........................ Revision History ................................
*
* Creation date: 02/22/2001 - Michael A. DeVault, DeVaSys
*
* Revision History Summary:
*
* Rev 1.0   22 February 2001 12:00:00   mad
*   Initial revision.
*
***************************************************************************/
/* following ifndef is for skipping double includes of this header file */
#if !defined(__I2C_H)
	#define __I2C_H

#include "portable.h"

#define I2C_TRUE  1
#define I2C_FALSE 0

#define I2C_WRMOD_NORMAL    0x00
#define I2C_WRMOD_NOSTOP    0x01
#define I2C_WRMOD_JUSTDATA  0x02
#define I2C_WRMOD_MAXDEF    0x03

// parallel port defines
#define DATA						0x378

BYTE I2C_Read(BYTE * pbyData, BYTE byDevId, BYTE byCount);
BYTE I2C_Write(BYTE byDevId, BYTE * pbyData, BYTE byCount, BYTE byWrMod);
void StatusLED(BYTE Status);
void WaitForInterrupt(void);
BYTE I2C_Init(void);
BYTE DetectDevice(WORD wLptBaseAddr);
void StartUSBLPTPD11Driver(void);
void StopUSBLPTPD11Driver(void);


/* following endif is for skipping double includes of this header file */
#endif

⌨️ 快捷键说明

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