#ifndef __PLL_CONFIG_H
#define __PLL_CONFIG_H	
#include "sys.h"

//-----------------------------宏定义------------------------------------------------------//
//#define CAL_LMX2581_CONFIG  0xAA //配置本振的LMX2581
//#define LO_LMX2581_CONFIG   0x55 //配置校准信号源LMX2581
//#define LO_LMX2594_CONFIG   0XCC //配置本振扫频的LMX2594


//-----------------------------宏定义------------------------------------------------------//


//-----------------------------函数定义------------------------------------------------------//
void Spectrum_Freq_set( double   Spectrum_Freq_start,             //设置频谱仪的起始频率，单位为GHz
						double   Spectrum_Freq_stop ,             //设置频谱仪的结束频率，单位为GHz
						uint16_t Spectrum_Freq_Sampling_point ,   //采样点数，限制600 ~ 19200
 						uint16_t Spectrum_Scan_delay,             //扫频延迟时间，单位为100us，						
																  //每增加1个数值，即频点停留时间增加100us
																  //最快是0，即系统配置到锁相环锁相环锁定时间
																  //最长延迟不得超过100us x 1000 = 100ms
						uint8_t  Spectrum_Detector                //检波方式设置										 
																);


uint8_t Spectrum_Freq_set_value_judge_result( double   Spectrum_Freq_start_judge ,         
											  double   Spectrum_Freq_stop_judge ,         
											  uint16_t Spectrum_Freq_Sampling_point_judge, 
											  uint16_t Spectrum_Scan_delay_judge,         
											  uint8_t  Spectrum_Detector_judge
																							);  
float Han_Win(uint16_t i ,float _Win_Hanning_Data_in);
float Gaosi_Win(uint16_t i ,float _Win_Gaosi_Data_in);
														
//-----------------------------函数定义------------------------------------------------------//


#endif 



 





