fc8150_i2c.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*****************************************************************************
  2. Copyright(c) 2012 FCI Inc. All Rights Reserved
  3. File name : fc8150_i2c.c
  4. Description : API of 1-SEG baseband module
  5. *******************************************************************************/
  6. #ifndef __FC8150_I2C_H__
  7. #define __FC8150_I2C_H__
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. extern int fc8150_i2c_init(HANDLE hDevice, u16 param1, u16 param2);
  12. extern int fc8150_i2c_byteread(HANDLE hDevice, u16 addr, u8 *data);
  13. extern int fc8150_i2c_wordread(HANDLE hDevice, u16 addr, u16 *data);
  14. extern int fc8150_i2c_longread(HANDLE hDevice, u16 addr, u32 *data);
  15. extern int fc8150_i2c_bulkread(HANDLE hDevice, u16 addr, u8 *data, u16 length);
  16. extern int fc8150_i2c_bytewrite(HANDLE hDevice, u16 addr, u8 data);
  17. extern int fc8150_i2c_wordwrite(HANDLE hDevice, u16 addr, u16 data);
  18. extern int fc8150_i2c_longwrite(HANDLE hDevice, u16 addr, u32 data);
  19. extern int fc8150_i2c_bulkwrite(HANDLE hDevice, u16 addr, u8 *data, u16 length);
  20. extern int fc8150_i2c_dataread(HANDLE hDevice, u16 addr, u8 *data, u32 length);
  21. extern int fc8150_i2c_deinit(HANDLE hDevice);
  22. #ifdef __cplusplus
  23. }
  24. #endif
  25. #endif