fmdrv_rx.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * FM Driver for Connectivity chip of Texas Instruments.
  3. * FM RX module header.
  4. *
  5. * Copyright (C) 2011 Texas Instruments
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. */
  17. #ifndef _FMDRV_RX_H
  18. #define _FMDRV_RX_H
  19. int fm_rx_set_freq(struct fmdev *, u32);
  20. int fm_rx_set_mute_mode(struct fmdev *, u8);
  21. int fm_rx_set_stereo_mono(struct fmdev *, u16);
  22. int fm_rx_set_rds_mode(struct fmdev *, u8);
  23. int fm_rx_set_rds_system(struct fmdev *, u8);
  24. int fm_rx_set_volume(struct fmdev *, u16);
  25. int fm_rx_set_rssi_threshold(struct fmdev *, short);
  26. int fm_rx_set_region(struct fmdev *, u8);
  27. int fm_rx_set_rfdepend_softmute(struct fmdev *, u8);
  28. int fm_rx_set_deemphasis_mode(struct fmdev *, u16);
  29. int fm_rx_set_af_switch(struct fmdev *, u8);
  30. void fm_rx_reset_rds_cache(struct fmdev *);
  31. void fm_rx_reset_station_info(struct fmdev *);
  32. int fm_rx_seek(struct fmdev *, u32, u32, u32);
  33. int fm_rx_get_rds_mode(struct fmdev *, u8 *);
  34. int fm_rx_get_mute_mode(struct fmdev *, u8 *);
  35. int fm_rx_get_volume(struct fmdev *, u16 *);
  36. int fm_rx_get_band_freq_range(struct fmdev *,
  37. u32 *, u32 *);
  38. int fm_rx_get_stereo_mono(struct fmdev *, u16 *);
  39. int fm_rx_get_rssi_level(struct fmdev *, u16 *);
  40. int fm_rx_get_rssi_threshold(struct fmdev *, short *);
  41. int fm_rx_get_rfdepend_softmute(struct fmdev *, u8 *);
  42. int fm_rx_get_deemph_mode(struct fmdev *, u16 *);
  43. int fm_rx_get_af_switch(struct fmdev *, u8 *);
  44. void fm_rx_get_region(struct fmdev *, u8 *);
  45. int fm_rx_set_chanl_spacing(struct fmdev *, u8);
  46. int fm_rx_get_chanl_spacing(struct fmdev *, u8 *);
  47. #endif