fci_tun.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*****************************************************************************
  2. Copyright(c) 2013 FCI Inc. All Rights Reserved
  3. File name : fci_tun.h
  4. Description : tuner control driver header file
  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. *******************************************************************************/
  19. #ifndef __FCI_TUN_H__
  20. #define __FCI_TUN_H__
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24. #include "fci_types.h"
  25. enum i2c_type {
  26. FCI_HPI_TYPE
  27. };
  28. enum band_type {
  29. BAND3_TYPE
  30. };
  31. enum product_type {
  32. FC8080_TUNER
  33. };
  34. extern s32 tuner_i2c_init(HANDLE handle, s32 speed, s32 slaveaddr);
  35. extern s32 tuner_i2c_deinit(HANDLE handle);
  36. extern s32 tuner_i2c_read(HANDLE handle, u8 addr, u8 addr_len, u8 *data,
  37. u8 len);
  38. extern s32 tuner_i2c_write(HANDLE handle, u8 addr, u8 addr_len, u8 *data,
  39. u8 len);
  40. extern s32 tuner_select(HANDLE handle, enum product_type product,
  41. enum band_type band);
  42. extern s32 tuner_set_freq(HANDLE handle, u32 freq);
  43. extern s32 tuner_get_rssi(HANDLE handle, s32 *rssi);
  44. #ifdef __cplusplus
  45. }
  46. #endif
  47. #endif /* __FCI_TUN_H__ */