fci_bypass.c 801 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*****************************************************************************
  2. Copyright(c) 2012 FCI Inc. All Rights Reserved
  3. File name : fci_bypass.c
  4. Description : fci i2c driver
  5. *******************************************************************************/
  6. #include "fci_bypass.h"
  7. #include "fci_types.h"
  8. int fci_bypass_init(HANDLE hDevice, int speed, int slaveaddr)
  9. {
  10. return BBM_OK;
  11. }
  12. int fci_bypass_read(HANDLE hDevice, u8 chip, u8 addr, u8 alen, u8 *data, u8 len)
  13. {
  14. int res;
  15. res = fc8150_bypass_read(hDevice, chip, addr, data, len);
  16. return res;
  17. }
  18. int fci_bypass_write(HANDLE hDevice, u8 chip, u8 addr
  19. , u8 alen, u8 *data, u8 len)
  20. {
  21. int res;
  22. res = fc8150_bypass_write(hDevice, chip, addr, data, len);
  23. return res;
  24. }
  25. int fci_bypass_deinit(HANDLE hDevice)
  26. {
  27. return BBM_OK;
  28. }