📄 ma_i2c.h
字号:
/*
*****************************************************************************
**
** Project : My project
**
** Component : LPC2106 (LPC2106)
**
** Modulename : I2C
**
** Filename : ma_i2c.h
**
** Abstract : This is the device driver header file for the I2C
** module.
**
** Compiler : IAR C compiler
**
** Date : 2004-05-26 17:21:26
**
** License no. : 9503-663-863-6224 Ivan
**
** Warning : This file has been automatically generated.
** Do not edit this file if you intend to regenerate it.
**
** This device driver was created by IAR MakeApp version
** 4.02A (Philips LPC210x: 4.00C) for the Philips LPC210x series of
** microcontrollers.
**
** (c)Copyright 2004 IAR Systems.
** Your rights to this file are explained in the IAR MakeApp
** License Agreement. All other rights reserved.
**
*****************************************************************************
*/
/*
**===========================================================================
** 1 GENERAL
** 1.1 Revisions
**
** Please read the IAR MakeApp for the Philips LPC210x readme file
**
**
**===========================================================================
*/
/*
**===========================================================================
** 1.2 References
**
** No Identification Name or Description
** == =================== ================================
**
** 1 02/Oct/2003 Philips LPC210x Hardware Manual
**
**===========================================================================
*/
/*
**===========================================================================
** 1.3 Re-definition guard
**===========================================================================
*/
/*--- Avoid including this file more than once ---*/
#ifndef _IS_INCLUDED_I2C_H
#define _IS_INCLUDED_I2C_H
/*
**===========================================================================
** 2. INCLUDE FILES
** 2.1 Standard include files
**===========================================================================
*/
/*
**===========================================================================
** 2.2 Application include files
**===========================================================================
*/
/*
**===========================================================================
** 3. DECLARATIONS
** 3.1 Global constants
**===========================================================================
*/
#define MA_I2C_ACK0 0
#define MA_I2C_ACK1 1
#define MA_I2C_READ 2
/*
**===========================================================================
** 3.2 Global macros
**===========================================================================
*/
/*
**===========================================================================
** 3.3 Global type definitions
**===========================================================================
*/
/*
**===========================================================================
** 3.4 Global variables (defined in some implementation file)
**===========================================================================
*/
/*
**===========================================================================
** 4. GLOBAL FUNCTIONS (defined in some implementation file)
**===========================================================================
*/
extern void MA_Init_I2C( void );
extern void MA_Reset_I2C( void );
extern S8 MA_Start_I2C( void );
extern S8 MA_RepeatStart_I2C( void );
extern S8 MA_Stop_I2C( void );
extern S8 MA_MasterPutChar_I2C( U8 Data );
extern S8 MA_MasterGetChar_I2C( U8 Mode, U8 *pData );
extern S8 MA_MasterWrite_I2C( U8 *pTxData, U16 Length );
extern S8 MA_MasterRead_I2C( U8 *pRxData, U16 Length );
extern U8 MA_CheckStatus_I2C( void );
#endif /* Match the re-definition guard */
/*
**===========================================================================
** END OF FILE
**===========================================================================
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -