123
Fork of LG by
Diff: host/Source/App/SIP.h
- Revision:
- 22:12e6183f04d4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/host/Source/App/SIP.h Wed Feb 03 10:44:42 2016 +0300 @@ -0,0 +1,26 @@ + +#define MAX_QEI_CNT 2147483646 //e .limit of input counter (INT32_MAX - 1) +#define INT32MAX_DIV2 1073741823 //e. 0.5*MAX_QEI_CNT +#define INT32MIN_DIV2 -1073741823 //e. -0.5*MAX_QEI_CNT + +#define SHIFT_TO_FRACT (18) //e. shift for converting integer to float (14.18) format //r. ñäâèã äëÿ ïðåîáðàçîâàíèÿ öåëîãî ÷èñëà ê äðîáíîìó ôîðìàòó 14.18 + +//#define OUTFREQ +//#define RATESIM +//#define GLOBALRATE +#define CONSTCYCLE +//#define DITHERSIM + +extern unsigned Cnt_curr; +extern unsigned Curr_Cnt_Vib; +extern int Dif_Curr_Vib; +extern int Dif_RG_vib_32; +extern int Dif_Curr_32; +extern __int64 Dif_RG_vib_64; + +extern int WP_scope3, WP_scope4; +/* +extern int Dif_Curr_Array[8]; +extern int Dif_Filt_Array[8]; +*/ +