Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of LGstaandart by
Diff: host/Source/App/SIP.h
- Revision:
- 23: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]; +*/ +
