123
Fork of LG by
Diff: SIP.h
- Revision:
- 0:8ad47e2b6f00
- Child:
- 21:bc8c1cec3da6
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SIP.h Sat Jan 30 13:00:39 2016 +0000 @@ -0,0 +1,27 @@ + +#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]; +*/ + +