fci_tun.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*****************************************************************************
  2. Copyright(c) 2009 FCI Inc. All Rights Reserved
  3. File name : fci_tun.h
  4. Description : tuner control driver header
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  16. History :
  17. ----------------------------------------------------------------------
  18. 2009/08/29 jason initial
  19. *******************************************************************************/
  20. #ifndef __FCI_TUN_H__
  21. #define __FCI_TUN_H__
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. #include "fci_types.h"
  26. enum i2c_type {
  27. FCI_I2C_TYPE = 0
  28. };
  29. enum band_type {
  30. BAND3_TYPE = 0,
  31. LBAND_TYPE
  32. };
  33. enum product_type {
  34. FC8000_TUNER = 0,
  35. FC8050_TUNER
  36. };
  37. extern int tuner_i2c_init(HANDLE hDevice, int speed, int slaveaddr);
  38. extern int tuner_i2c_read(
  39. HANDLE hDevice, u8 addr, u8 address_len, u8 *data, u8 len);
  40. extern int tuner_i2c_write(
  41. HANDLE hDevice, u8 addr, u8 address_len, u8 *data, u8 len);
  42. extern int tuner_select(HANDLE hDevice, u32 product, u32 band);
  43. extern int tuner_set_freq(HANDLE hDevice, u32 freq);
  44. extern int tuner_get_rssi(HANDLE hDevice, s32 *rssi);
  45. #ifdef __cplusplus
  46. }
  47. #endif
  48. #endif /* __FCI_TUN_H__ */