![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
forkd
Fork of LGstaandart by
SPI.h
- Committer:
- Kovalev_D
- Date:
- 2017-12-12
- Revision:
- 225:f8fee6c586cc
- Parent:
- 222:7de7b3bf3a1d
- Child:
- 226:4a4d5bd5fcd7
File content as of revision 225:f8fee6c586cc:
#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 unsigned int Cur_Amp,faza; extern int Znak_Amp; extern int AD_Regul ; extern unsigned int SinPLC[]; //extern unsigned int Temp_AMP; extern unsigned int Temp_AMP64P, faza; extern int RegulADC,DeltaRegul,tempDeltaRegul; extern unsigned int Buff_ADC_1 []; extern unsigned int Buff_ADC_2 []; extern unsigned int Buff_ADC_3 []; extern unsigned int Buff_ADC_4 []; extern int Buff_OUT []; extern int Buff_OUT1[]; extern int ADC_5_T; 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 BuffADC_16Point []; extern int BuffADC_32Point []; extern int BuffADC_64Point []; extern int BuffADC_128Point []; extern int BuffADC_10v []; extern int BuffADC_10v_OLD []; extern int BuffADC_10v_F []; extern int count10v,AmpWorms,MinWorms,MaxWorms,PLC_Flag,AMPSUM,AMPSUM_DESP,AMPSUMP,AMPSUMM,AMPSUMPout,AMPSUMMout,AMPSUMout,SumDelta, PLC_EROR; 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 InitMOD(void); extern void Modulator(void); extern void ShowMod2(void); extern void ShowMod(void); #endif // SPI_H