HalPhyRf_8812A.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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 __HAL_PHY_RF_8812A_H__
  21. #define __HAL_PHY_RF_8812A_H__
  22. /*--------------------------Define Parameters-------------------------------*/
  23. #define IQK_DELAY_TIME_8812A 10 //ms
  24. #define IQK_DEFERRED_TIME_8812A 4 //sec
  25. #define index_mapping_NUM_8812A 15
  26. #define AVG_THERMAL_NUM_8812A 4
  27. #define RF_T_METER_8812A 0x42
  28. void ConfigureTxpowerTrack_8812A(
  29. PTXPWRTRACK_CFG pConfig
  30. );
  31. VOID
  32. GetDeltaSwingTable_8812A(
  33. IN PDM_ODM_T pDM_Odm,
  34. OUT pu1Byte *TemperatureUP_A,
  35. OUT pu1Byte *TemperatureDOWN_A,
  36. OUT pu1Byte *TemperatureUP_B,
  37. OUT pu1Byte *TemperatureDOWN_B
  38. );
  39. void DoIQK_8812A(
  40. PDM_ODM_T pDM_Odm,
  41. u1Byte DeltaThermalIndex,
  42. u1Byte ThermalValue,
  43. u1Byte Threshold
  44. );
  45. VOID
  46. ODM_TxPwrTrackSetPwr8812A(
  47. PDM_ODM_T pDM_Odm,
  48. PWRTRACK_METHOD Method,
  49. u1Byte RFPath,
  50. u1Byte ChannelMappedIndex
  51. );
  52. //1 7. IQK
  53. void
  54. PHY_IQCalibrate_8812A(
  55. IN PADAPTER pAdapter,
  56. IN BOOLEAN bReCovery
  57. );
  58. //
  59. // LC calibrate
  60. //
  61. void
  62. PHY_LCCalibrate_8812A(
  63. IN PDM_ODM_T pDM_Odm
  64. );
  65. //
  66. // AP calibrate
  67. //
  68. void
  69. PHY_APCalibrate_8812A(
  70. #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
  71. IN PDM_ODM_T pDM_Odm,
  72. #else
  73. IN PADAPTER pAdapter,
  74. #endif
  75. IN s1Byte delta);
  76. void
  77. PHY_DigitalPredistortion_8812A( IN PADAPTER pAdapter);
  78. VOID
  79. PHY_DPCalibrate_8812A(
  80. IN PDM_ODM_T pDM_Odm
  81. );
  82. VOID PHY_SetRFPathSwitch_8812A(
  83. #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
  84. IN PDM_ODM_T pDM_Odm,
  85. #else
  86. IN PADAPTER pAdapter,
  87. #endif
  88. IN BOOLEAN bMain
  89. );
  90. #endif // #ifndef __HAL_PHY_RF_8812A_H__