HalPhyRf_8821A.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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_8821A_H__
  21. #define __HAL_PHY_RF_8821A_H__
  22. /*--------------------------Define Parameters-------------------------------*/
  23. #define IQK_DELAY_TIME_8821A 10 //ms
  24. #define index_mapping_NUM_8821A 15
  25. #define AVG_THERMAL_NUM_8821A 4
  26. #define RF_T_METER_8821A 0x42
  27. void ConfigureTxpowerTrack_8821A(
  28. PTXPWRTRACK_CFG pConfig
  29. );
  30. void DoIQK_8821A(
  31. PDM_ODM_T pDM_Odm,
  32. u1Byte DeltaThermalIndex,
  33. u1Byte ThermalValue,
  34. u1Byte Threshold
  35. );
  36. VOID
  37. ODM_TxPwrTrackSetPwr8821A(
  38. PDM_ODM_T pDM_Odm,
  39. PWRTRACK_METHOD Method,
  40. u1Byte RFPath,
  41. u1Byte ChannelMappedIndex
  42. );
  43. //1 7. IQK
  44. void
  45. PHY_IQCalibrate_8821A(
  46. IN PADAPTER pAdapter,
  47. IN BOOLEAN bReCovery
  48. );
  49. VOID
  50. PHY_LCCalibrate_8821A(
  51. IN PDM_ODM_T pDM_Odm
  52. );
  53. VOID
  54. GetDeltaSwingTable_8821A(
  55. IN PDM_ODM_T pDM_Odm,
  56. OUT pu1Byte *TemperatureUP_A,
  57. OUT pu1Byte *TemperatureDOWN_A,
  58. OUT pu1Byte *TemperatureUP_B,
  59. OUT pu1Byte *TemperatureDOWN_B
  60. );
  61. VOID PHY_SetRFPathSwitch_8821A(
  62. #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
  63. IN PDM_ODM_T pDM_Odm,
  64. #else
  65. IN PADAPTER pAdapter,
  66. #endif
  67. IN BOOLEAN bMain
  68. );
  69. #endif // #ifndef __HAL_PHY_RF_8821A_H__