pll_4113.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /**************************************************************************************************
  2. Filename: hal_adf4113.h
  3. Revised: $Date: 2013-11-17 $
  4. Revision: $Revision: $
  5. Description: This file contains the interface to the ADF4113 frequency synthesizer.
  6. **************************************************************************************************/
  7. #ifndef HAL_ADF4113_H
  8. #define HAL_ADF4113_H
  9. #include "main.h"
  10. typedef struct _PLL_Setting_st{
  11. GPIO_TypeDef * PLL_CLK_PORT;
  12. uint16_t PLL_CLK_PIN;
  13. GPIO_TypeDef * PLL_DATA_PORT;
  14. uint16_t PLL_DATA_PIN;
  15. GPIO_TypeDef * PLL_ENABLE_PORT;
  16. uint16_t PLL_ENABLE_PIN;
  17. } PLL_Setting_st;
  18. PLL_Setting_st ADF4113_1_8G_DL;
  19. PLL_Setting_st ADF4113_1_8G_UL;
  20. PLL_Setting_st ADF4113_2_1G_DL;
  21. PLL_Setting_st ADF4113_2_1G_UL;
  22. uint8_t PLL_1_8_DL_Error_Cnt;
  23. uint8_t PLL_1_8_UL_Error_Cnt;
  24. uint8_t PLL_2_1_DL_Error_Cnt;
  25. uint8_t PLL_2_1_UL_Error_Cnt;
  26. uint32_t halSynSetFreq(uint32_t rf_Freq);
  27. void ADF4113_Module_Ctrl(PLL_Setting_st pll,uint32_t R0,uint32_t R1,uint32_t R2);
  28. void ADF4113_Initialize(void);
  29. void ADF4113_Check(void);
  30. //void ADF4113_Module_Ctrl(PLL_Setting_st pll,uint32_t R0,uint32_t R1,uint32_t R2);
  31. #endif