liubin | 281ac46 | 2023-07-19 14:22:54 +0800 | [diff] [blame] | 1 | /***************************************************************************** |
| 2 | * Copyright Statement: |
| 3 | * -------------------- |
| 4 | * This software is protected by Copyright and the information contained |
| 5 | * herein is confidential. The software may not be copied and the information |
| 6 | * contained herein may not be used or disclosed except with the written |
| 7 | * permission of Quectel Co., Ltd. 2019 |
| 8 | * |
| 9 | *****************************************************************************/ |
| 10 | /***************************************************************************** |
| 11 | * |
| 12 | * Filename: |
| 13 | * --------- |
| 14 | * ql_i2c.h |
| 15 | * |
| 16 | * Project: |
| 17 | * -------- |
| 18 | * OpenLinux |
| 19 | * |
| 20 | * Description: |
| 21 | * ------------ |
| 22 | * i2c API defines. |
| 23 | * |
| 24 | * |
| 25 | *============================================================================ |
| 26 | * HISTORY |
| 27 | *---------------------------------------------------------------------------- |
| 28 | * WHO WHEN WHAT |
| 29 | *---------------------------------------------------------------------------- |
| 30 | * Carola.Zhang 16/07/2019 Create. |
| 31 | ****************************************************************************/ |
| 32 | #ifndef __QL_UART_H__ |
| 33 | #define __QL_UART_H__ |
| 34 | |
| 35 | |
| 36 | int Ql_I2C_Init(char *dev_name); |
| 37 | int Ql_I2C_Read(int fd, unsigned short slaveAddr, unsigned char ofstAddr, unsigned char* ptrBuff, unsigned short length); |
| 38 | int Ql_I2C_Write(int fd, unsigned short slaveAddr, unsigned char ofstAddr, unsigned char* ptrData, unsigned short length); |
| 39 | int Ql_I2C_Deinit(int fd); |
| 40 | |
| 41 | #endif /* __QL_i2c_H__ */ |