phydm_cfotracking.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
  4. *
  5. * This program is free software; you can redistribute it and/or modify it
  6. * under the terms of version 2 of the GNU General Public License as
  7. * published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  12. * more details.
  13. *
  14. * You should have received a copy of the GNU General Public License along with
  15. * this program; if not, write to the Free Software Foundation, Inc.,
  16. * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
  17. *
  18. *
  19. ******************************************************************************/
  20. #ifndef __PHYDMCFOTRACK_H__
  21. #define __PHYDMCFOTRACK_H__
  22. #define CFO_TRACKING_VERSION "1.4" /*2015.10.01 Stanley, Modify for 8822B*/
  23. #define CFO_TH_XTAL_HIGH 20 /* kHz */
  24. #define CFO_TH_XTAL_LOW 10 /* kHz */
  25. #define CFO_TH_ATC 80 /* kHz */
  26. struct _CFO_TRACKING_ {
  27. boolean is_atc_status;
  28. boolean large_cfo_hit;
  29. boolean is_adjust;
  30. u8 crystal_cap;
  31. u8 def_x_cap;
  32. s32 CFO_tail[4];
  33. u32 CFO_cnt[4];
  34. s32 CFO_ave_pre;
  35. u32 packet_count;
  36. u32 packet_count_pre;
  37. boolean is_force_xtal_cap;
  38. boolean is_reset;
  39. };
  40. void
  41. odm_cfo_tracking_reset(
  42. void *p_dm_void
  43. );
  44. void
  45. odm_cfo_tracking_init(
  46. void *p_dm_void
  47. );
  48. void
  49. odm_cfo_tracking(
  50. void *p_dm_void
  51. );
  52. void
  53. odm_parsing_cfo(
  54. void *p_dm_void,
  55. void *p_pktinfo_void,
  56. s8 *pcfotail,
  57. u8 num_ss
  58. );
  59. #endif