blob: 52eb4c8adf91a11847e3dbb4bfea02ec5531da78 [file] [log] [blame]
/*****************************************************************************
* Copyright Statement:
* --------------------
* This software is protected by Copyright and the information contained
* herein is confidential. The software may not be copied and the information
* contained herein may not be used or disclosed except with the written
* permission of Quectel Co., Ltd. 2019
*
*****************************************************************************/
/*****************************************************************************
*
* Filename:
* ---------
* ql_i2c.h
*
* Project:
* --------
* OpenLinux
*
* Description:
* ------------
* i2c API defines.
*
*
*============================================================================
* HISTORY
*----------------------------------------------------------------------------
* WHO WHEN WHAT
*----------------------------------------------------------------------------
* Carola.Zhang 16/07/2019 Create.
****************************************************************************/
#ifndef __QL_UART_H__
#define __QL_UART_H__
int Ql_I2C_Init(char *dev_name);
int Ql_I2C_Read(int fd, unsigned short slaveAddr, unsigned char ofstAddr, unsigned char* ptrBuff, unsigned short length);
int Ql_I2C_Write(int fd, unsigned short slaveAddr, unsigned char ofstAddr, unsigned char* ptrData, unsigned short length);
int Ql_I2C_Deinit(int fd);
#endif /* __QL_i2c_H__ */