📄 i2c.h
字号:
/******************************************************************************
**
** COPYRIGHT (C) 2000, 2001 Intel Corporation.
**
** This software as well as the software described in it is furnished under
** license and may only be used or copied in accordance with the terms of the
** license. The information in this file is furnished for informational use
** only, is subject to change without notice, and should not be construed as
** a commitment by Intel Corporation. Intel Corporation assumes no
** responsibility or liability for any errors or inaccuracies that may appear
** in this document or any software that may be provided in association with
** this document.
** Except as permitted by such license, no part of this document may be
** reproduced, stored in a retrieval system, or transmitted in any form or by
** any means without the express written consent of Intel Corporation.
**
** LAST MODIFIED: $Modtime: 9/17/03 9:50a $
******************************************************************************/
#ifndef I2C_H
#define I2C_H
#include "DRV_i2c.h"
//These will be in the clock unit
// this will not be in here; this is only to test the functionality of the XLLP functions
// dont want to remove these at this time.
#define XLLP_CKEN_I2C_ENABLE 0x00004000
#define XLLP_CKEN_ADDR (P_XLLP_VUINT32_T)0x41300004 /* Clock Enable Register */
#define PWR_I2C_BASE 0x40F00180 // address of Pi2c //
#define STD_I2C_BASE 0x40301680 // address of Si2c //
#define I2C_TIMEOUT 0x100000
/**************************
* I2C Bus Interface Unit *
**************************/
// note offset at 0x4030_16xx for standard i2c physical
// end of testing purposes code only
XLLP_UINT32_T i2c_write(P_POST_I2C_T I2C_regs, P_XLLP_INTC_T int_regs,
pI2C_TX seq);
XLLP_UINT32_T i2c_read(P_POST_I2C_T i2c_regs, P_XLLP_INTC_T int_regs, pI2C_TX seq,
P_XLLP_UINT8_T rx_data, XLLP_UINT32_T rx_data_len);
#endif /* XLLP_I2C_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -