fci_tun.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*****************************************************************************
  2. Copyright(c) 2012 FCI Inc. All Rights Reserved
  3. File name : fci_tun.h
  4. Description : tuner control driver
  5. *******************************************************************************/
  6. #ifndef __FCI_TUN_H__
  7. #define __FCI_TUN_H__
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. #include "fci_types.h"
  12. enum i2c_type{
  13. FCI_I2C_TYPE = 0,
  14. FCI_BYPASS_TYPE = 1
  15. };
  16. enum band_type{
  17. ISDBT_1_SEG_TYPE = 2
  18. };
  19. enum product_type{
  20. FC8150_TUNER = 8150,
  21. FC8151_TUNER = 8151
  22. };
  23. extern int tuner_ctrl_select(HANDLE hDevice, enum i2c_type type);
  24. extern int tuner_ctrl_deselect(HANDLE hDevice);
  25. extern int tuner_select(HANDLE hDevice, u32 product, u32 band);
  26. extern int tuner_deselect(HANDLE hDevice);
  27. extern int tuner_i2c_read(HANDLE hDevice, u8 addr, u8 alen, u8 *data, u8 len);
  28. extern int tuner_i2c_write(HANDLE hDevice, u8 addr, u8 alen, u8 *data, u8 len);
  29. extern int tuner_set_freq(HANDLE hDevice, u32 freq);
  30. extern int tuner_get_rssi(HANDLE hDevice, s32 *rssi);
  31. #ifdef __cplusplus
  32. }
  33. #endif
  34. #endif