bbm.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*****************************************************************************
  2. Copyright(c) 2012 FCI Inc. All Rights Reserved
  3. File name : bbm.h
  4. Description : API of 1-SEG baseband module
  5. *******************************************************************************/
  6. #ifndef __BBM_H__
  7. #define __BBM_H__
  8. #include "fci_types.h"
  9. #define DRIVER_VER "VER 2.26.2"
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. extern int BBM_RESET(HANDLE hDevice);
  14. extern int BBM_PROBE(HANDLE hDevice);
  15. extern int BBM_INIT(HANDLE hDevice);
  16. extern int BBM_DEINIT(HANDLE hDevice);
  17. extern int BBM_READ(HANDLE hDevice, u16 addr, u8 *data);
  18. extern int BBM_BYTE_READ(HANDLE hDevice, u16 addr, u8 *data);
  19. extern int BBM_WORD_READ(HANDLE hDevice, u16 addr, u16 *data);
  20. extern int BBM_LONG_READ(HANDLE hDevice, u16 addr, u32 *data);
  21. extern int BBM_BULK_READ(HANDLE hDevice, u16 addr, u8 *data, u16 size);
  22. extern int BBM_DATA(HANDLE hDevice, u16 addr, u8 *data, u32 size);
  23. extern int BBM_WRITE(HANDLE hDevice, u16 addr, u8 data);
  24. extern int BBM_BYTE_WRITE(HANDLE hDevice, u16 addr, u8 data);
  25. extern int BBM_WORD_WRITE(HANDLE hDevice, u16 addr, u16 data);
  26. extern int BBM_LONG_WRITE(HANDLE hDevice, u16 addr, u32 data);
  27. extern int BBM_BULK_WRITE(HANDLE hDevice, u16 addr, u8 *data, u16 size);
  28. extern int BBM_I2C_INIT(HANDLE hDevice, u32 type);
  29. extern int BBM_I2C_DEINIT(HANDLE hDevice);
  30. extern int BBM_TUNER_SELECT(HANDLE hDevice, u32 product, u32 band);
  31. extern int BBM_TUNER_DESELECT(HANDLE hDevice);
  32. extern int BBM_TUNER_READ(HANDLE hDevice, u8 addr
  33. , u8 alen, u8 *buffer, u8 len);
  34. extern int BBM_TUNER_WRITE(HANDLE hDevice, u8 addr
  35. , u8 alen, u8 *buffer, u8 len);
  36. extern int BBM_TUNER_SET_FREQ(HANDLE hDevice, u32 freq);
  37. extern int BBM_TUNER_GET_RSSI(HANDLE hDevice, s32 *rssi);
  38. extern int BBM_SCAN_STATUS(HANDLE hDevice);
  39. extern int BBM_HOSTIF_SELECT(HANDLE hDevice, u8 hostif);
  40. extern int BBM_HOSTIF_DESELECT(HANDLE hDevice);
  41. extern int BBM_TS_CALLBACK_REGISTER(u32 userdata
  42. , int (*callback)(u32 userdata, u8 *data, int length));
  43. extern int BBM_TS_CALLBACK_DEREGISTER(void);
  44. extern int BBM_AC_CALLBACK_REGISTER(u32 userData
  45. , int (*callback)(u32 userdata, u8 *data, int length));
  46. extern int BBM_AC_CALLBACK_DEREGISTER(void);
  47. extern void BBM_ISR(HANDLE hDevice);
  48. #ifdef __cplusplus
  49. }
  50. #endif
  51. #endif /* __BBM_H__ */