fci_i2c.h 704 B

123456789101112131415161718192021222324252627282930
  1. /*****************************************************************************
  2. Copyright(c) 2012 FCI Inc. All Rights Reserved
  3. File name : fci_i2c.h
  4. Description : fci i2c driver header
  5. *******************************************************************************/
  6. #ifndef __FCI_I2C_H__
  7. #define __FCI_I2C_H__
  8. #include "fci_types.h"
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. extern int fci_i2c_init(HANDLE hDevice, int speed, int slaveaddr);
  13. extern int fci_i2c_read(HANDLE hDevice, u8 chip, u8 addr
  14. , u8 alen, u8 *data, u8 len);
  15. extern int fci_i2c_write(HANDLE hDevice, u8 chip, u8 addr
  16. , u8 alen, u8 *data, u8 len);
  17. extern int fci_i2c_deinit(HANDLE hDevice);
  18. #ifdef __cplusplus
  19. }
  20. #endif
  21. #endif