bbm.h 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*****************************************************************************
  2. Copyright(c) 2013 FCI Inc. All Rights Reserved
  3. File name : bbm.h
  4. Description : API header of ISDB-T baseband module
  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 __BBM_H__
  20. #define __BBM_H__
  21. #include "fci_types.h"
  22. #define DRIVER_VER "S1.15.0"
  23. s32 bbm_com_reset(HANDLE handle, DEVICEID devid);
  24. s32 bbm_com_probe(HANDLE handle, DEVICEID devid);
  25. s32 bbm_com_init(HANDLE handle, DEVICEID devid);
  26. s32 bbm_com_deinit(HANDLE handle, DEVICEID devid);
  27. s32 bbm_com_read(HANDLE handle, DEVICEID devid, u16 addr, u8 *data);
  28. s32 bbm_com_byte_read(HANDLE handle, DEVICEID devid, u16 addr, u8 *data);
  29. s32 bbm_com_word_read(HANDLE handle, DEVICEID devid, u16 addr, u16 *data);
  30. s32 bbm_com_long_read(HANDLE handle, DEVICEID devid, u16 addr, u32 *data);
  31. s32 bbm_com_bulk_read(HANDLE handle, DEVICEID devid, u16 addr, u8 *data,
  32. u16 size);
  33. s32 bbm_com_data(HANDLE handle, DEVICEID devid, u16 addr, u8 *data, u32 size);
  34. s32 bbm_com_write(HANDLE handle, DEVICEID devid, u16 addr, u8 data);
  35. s32 bbm_com_byte_write(HANDLE handle, DEVICEID devid, u16 addr, u8 data);
  36. s32 bbm_com_word_write(HANDLE handle, DEVICEID devid, u16 addr, u16 data);
  37. s32 bbm_com_long_write(HANDLE handle, DEVICEID devid, u16 addr, u32 data);
  38. s32 bbm_com_bulk_write(HANDLE handle, DEVICEID devid,
  39. u16 addr, u8 *data, u16 size);
  40. s32 bbm_com_i2c_init(HANDLE handle, u32 type);
  41. s32 bbm_com_i2c_deinit(HANDLE handle);
  42. s32 bbm_com_tuner_select(HANDLE handle, DEVICEID devid,
  43. u32 product, u32 brodcast);
  44. s32 bbm_com_tuner_deselect(HANDLE handle, DEVICEID devid);
  45. s32 bbm_com_tuner_read(HANDLE handle, DEVICEID devid,
  46. u8 addr, u8 alen, u8 *buffer, u8 len);
  47. s32 bbm_com_tuner_write(HANDLE handle, DEVICEID devid,
  48. u8 addr, u8 alen, u8 *buffer, u8 len);
  49. s32 bbm_com_tuner_set_freq(HANDLE handle, DEVICEID devid, u32 freq, u8 subch);
  50. s32 bbm_com_tuner_get_rssi(HANDLE handle, DEVICEID devid, s32 *rssi);
  51. s32 bbm_com_scan_status(HANDLE handle, DEVICEID devid);
  52. s32 bbm_com_hostif_select(HANDLE handle, u8 hostif);
  53. s32 bbm_com_hostif_deselect(HANDLE handle);
  54. s32 bbm_com_ts_callback_register(u32 userdata,
  55. s32 (*callback)(u32 userdata, u8 bufid, u8 *data, s32 length));
  56. s32 bbm_com_ts_callback_deregister(void);
  57. s32 bbm_com_ac_callback_register(u32 userdata,
  58. s32 (*callback)(u32 userdata, u8 bufid, u8 *data, s32 length));
  59. s32 bbm_com_ac_callback_deregister(void);
  60. void bbm_com_isr(HANDLE handle);
  61. #endif /* __BBM_H__ */