![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
forkd
Fork of LGstaandart by
SPI.h
- Committer:
- Kovalev_D
- Date:
- 2018-01-25
- Revision:
- 231:079835d508ef
- Parent:
- 228:a8195e1b1123
- Child:
- 232:130a2b5003e6
File content as of revision 231:079835d508ef:
#ifndef SPI_H #define SPI_H #define RX_SSP_notEMPT 0x00000004 extern unsigned int SPIlog; struct SPI { // unsigned int SpiFlag; unsigned int ADC1; unsigned int ADC2; unsigned int ADC3; unsigned int ADC4; unsigned int ADC5; unsigned int ADC1_Accum; unsigned int ADC2_Accum; unsigned int ADC3_Accum; unsigned int ADC4_Accum; unsigned int ADC5_Accum; unsigned int ADC_NewData; unsigned int FlagExchange; unsigned int DAC_A; unsigned int DAC_B; unsigned int DAC_L; // unsigned int PLC_NewData; }; //extern int TSinPls,TSinMns; extern unsigned int ADC5New; extern int WormFilt2[]; extern int PlcWormMN, PlcWormPL, PlcWormDelta, PlcWormMNout, PlcWormPLout, PlcWormDeltaout; extern unsigned int Cur_Amp,faza; extern int Znak_Amp; extern int AD_Regul ; extern unsigned int SinPLC[]; extern int AVR_PLC_ERR[]; extern int ERRPLC; //extern unsigned int Temp_AMP; extern unsigned int Temp_AMP64P, faza; extern int DeltaRegul,tempDeltaRegul; extern int ADC_5_T; extern int HFOAmpfilt,HFOAmpfiltC; extern int HFOAmp; extern int HFOAmpSUM; extern int ADC_16Point; extern int ADC_32Point; extern int ADC_64Point; extern int ADC_128Point; extern int ADC_32PointD; extern int BuffADC_1Point []; extern int BuffADC_1Point_64 []; extern int BuffADC_znak []; extern int WormFilt []; extern int WormFilt1 []; extern int BuffADC_16Point []; extern int BuffADC_32Point []; extern int BuffADC_64Point []; extern int BuffADC_128Point []; extern int BuffADC_10HFO []; extern int BuffADC_10v []; extern int BuffADC_10v_OLD []; extern int BuffADC_10v_F []; extern int count10v,AmpWorms,MinWorms,MaxWorms,HFO_Flag,AMPSUMout,SumDelta, PLC_EROR, HFOSumDelta,HFOregul; extern unsigned int HFO_AVR; extern int Buff_Restored_Mod []; extern int Buff_PLC_Eror []; extern int BSinMns []; extern int BSinPls []; extern int SinPls, SinMns; extern int TSinPls, TSinMns; //extern int BuffADC_32Point []; //extern unsigned int Buff_ADC_5 []; extern unsigned int PulseADC_16Point; extern unsigned int PulseADC_32Point; //extern unsigned int PulseADC_64Point; extern unsigned int PulseADC_32PointD; extern int ADC5Old,ADCDIF; extern unsigned int Buff_AMP []; extern unsigned int Buff_AMP64P[]; extern struct SPI Spi; extern unsigned int ModArraySin []; extern unsigned int ModArraySin32 []; //extern unsigned int ModArraySaw []; //extern unsigned int ModArrayTriangle []; extern unsigned int Mod; extern unsigned int TypeMod; extern void Init_SPI_Exchange(void); extern void PlcRegul(void); extern void PLCRegul250(void); extern void HFORegul(void); extern void SPI_Exchange(void); extern void ADS_Acum(void); extern void Modulator(void); extern void ShowMod2(void); float BUTTER(float NewSample); float iir(float NewSampleB); float PLCF1hz(float NewSampleP); extern void ShowMod(void); #endif // SPI_H