![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
forkd
Fork of LGstaandart by
SPI.h@232:130a2b5003e6, 2018-01-31 (annotated)
- Committer:
- Kovalev_D
- Date:
- Wed Jan 31 13:41:23 2018 +0000
- Revision:
- 232:130a2b5003e6
- Parent:
- 231:079835d508ef
static termocorr
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
igor_v | 1:f2adcae3d304 | 1 | #ifndef SPI_H |
igor_v | 1:f2adcae3d304 | 2 | #define SPI_H |
igor_v | 1:f2adcae3d304 | 3 | |
igor_v | 1:f2adcae3d304 | 4 | |
igor_v | 0:8ad47e2b6f00 | 5 | #define RX_SSP_notEMPT 0x00000004 |
Kovalev_D | 220:04c54405b82d | 6 | extern unsigned int SPIlog; |
igor_v | 0:8ad47e2b6f00 | 7 | struct SPI { |
igor_v | 110:6406b7ac0442 | 8 | |
Kovalev_D | 113:8be429494918 | 9 | // unsigned int SpiFlag; |
Kovalev_D | 112:4a96133a1311 | 10 | |
Kovalev_D | 232:130a2b5003e6 | 11 | int ADC1; |
Kovalev_D | 232:130a2b5003e6 | 12 | int ADC2; |
Kovalev_D | 232:130a2b5003e6 | 13 | int ADC3; |
Kovalev_D | 232:130a2b5003e6 | 14 | int ADC4; |
Kovalev_D | 232:130a2b5003e6 | 15 | int ADC5; |
igor_v | 0:8ad47e2b6f00 | 16 | |
Kovalev_D | 232:130a2b5003e6 | 17 | int ADC1_Accum; |
Kovalev_D | 232:130a2b5003e6 | 18 | int ADC2_Accum; |
Kovalev_D | 232:130a2b5003e6 | 19 | int ADC3_Accum; |
Kovalev_D | 232:130a2b5003e6 | 20 | int ADC4_Accum; |
Kovalev_D | 232:130a2b5003e6 | 21 | int ADC5_Accum; |
Kovalev_D | 232:130a2b5003e6 | 22 | int ADC_NewData; |
igor_v | 110:6406b7ac0442 | 23 | |
igor_v | 110:6406b7ac0442 | 24 | |
Kovalev_D | 208:19150d2b528f | 25 | unsigned int FlagExchange; |
igor_v | 0:8ad47e2b6f00 | 26 | unsigned int DAC_A; |
igor_v | 0:8ad47e2b6f00 | 27 | unsigned int DAC_B; |
igor_v | 0:8ad47e2b6f00 | 28 | unsigned int DAC_L; |
Kovalev_D | 170:d099c3025f87 | 29 | // unsigned int PLC_NewData; |
igor_v | 0:8ad47e2b6f00 | 30 | }; |
Kovalev_D | 215:b58b887fd367 | 31 | //extern int TSinPls,TSinMns; |
Kovalev_D | 214:4c70e452c491 | 32 | extern unsigned int ADC5New; |
igor_v | 110:6406b7ac0442 | 33 | |
Kovalev_D | 214:4c70e452c491 | 34 | |
Kovalev_D | 231:079835d508ef | 35 | extern int WormFilt2[]; |
Kovalev_D | 231:079835d508ef | 36 | extern int PlcWormMN, PlcWormPL, PlcWormDelta, PlcWormMNout, PlcWormPLout, PlcWormDeltaout; |
Kovalev_D | 216:189b0ea1dc38 | 37 | extern unsigned int Cur_Amp,faza; |
Kovalev_D | 99:3d8f206ceac2 | 38 | extern int Znak_Amp; |
Kovalev_D | 109:ee0cff33ad3b | 39 | extern int AD_Regul ; |
Kovalev_D | 92:c892f0311aa7 | 40 | extern unsigned int SinPLC[]; |
Kovalev_D | 231:079835d508ef | 41 | extern int AVR_PLC_ERR[]; |
Kovalev_D | 231:079835d508ef | 42 | extern int ERRPLC; |
Kovalev_D | 112:4a96133a1311 | 43 | //extern unsigned int Temp_AMP; |
Kovalev_D | 215:b58b887fd367 | 44 | |
Kovalev_D | 216:189b0ea1dc38 | 45 | extern unsigned int Temp_AMP64P, faza; |
Kovalev_D | 231:079835d508ef | 46 | extern int DeltaRegul,tempDeltaRegul; |
Kovalev_D | 231:079835d508ef | 47 | |
Kovalev_D | 214:4c70e452c491 | 48 | extern int ADC_5_T; |
Kovalev_D | 214:4c70e452c491 | 49 | |
Kovalev_D | 228:a8195e1b1123 | 50 | extern int HFOAmpfilt,HFOAmpfiltC; |
Kovalev_D | 228:a8195e1b1123 | 51 | extern int HFOAmp; |
Kovalev_D | 228:a8195e1b1123 | 52 | extern int HFOAmpSUM; |
Kovalev_D | 215:b58b887fd367 | 53 | extern int ADC_16Point; |
Kovalev_D | 220:04c54405b82d | 54 | extern int ADC_32Point; |
Kovalev_D | 215:b58b887fd367 | 55 | extern int ADC_64Point; |
Kovalev_D | 220:04c54405b82d | 56 | extern int ADC_128Point; |
Kovalev_D | 220:04c54405b82d | 57 | |
Kovalev_D | 215:b58b887fd367 | 58 | extern int ADC_32PointD; |
Kovalev_D | 215:b58b887fd367 | 59 | extern int BuffADC_1Point []; |
Kovalev_D | 220:04c54405b82d | 60 | extern int BuffADC_1Point_64 []; |
Kovalev_D | 220:04c54405b82d | 61 | |
Kovalev_D | 220:04c54405b82d | 62 | extern int BuffADC_znak []; |
Kovalev_D | 231:079835d508ef | 63 | extern int WormFilt []; |
Kovalev_D | 231:079835d508ef | 64 | extern int WormFilt1 []; |
Kovalev_D | 220:04c54405b82d | 65 | |
Kovalev_D | 220:04c54405b82d | 66 | extern int BuffADC_16Point []; |
Kovalev_D | 220:04c54405b82d | 67 | extern int BuffADC_32Point []; |
Kovalev_D | 220:04c54405b82d | 68 | extern int BuffADC_64Point []; |
Kovalev_D | 220:04c54405b82d | 69 | extern int BuffADC_128Point []; |
Kovalev_D | 226:4a4d5bd5fcd7 | 70 | extern int BuffADC_10HFO []; |
Kovalev_D | 220:04c54405b82d | 71 | extern int BuffADC_10v []; |
Kovalev_D | 220:04c54405b82d | 72 | extern int BuffADC_10v_OLD []; |
Kovalev_D | 220:04c54405b82d | 73 | extern int BuffADC_10v_F []; |
Kovalev_D | 231:079835d508ef | 74 | extern int count10v,AmpWorms,MinWorms,MaxWorms,HFO_Flag,AMPSUMout,SumDelta, PLC_EROR, HFOSumDelta,HFOregul; |
Kovalev_D | 231:079835d508ef | 75 | |
Kovalev_D | 227:2774b56bfab0 | 76 | extern unsigned int HFO_AVR; |
Kovalev_D | 215:b58b887fd367 | 77 | extern int Buff_Restored_Mod []; |
Kovalev_D | 215:b58b887fd367 | 78 | extern int Buff_PLC_Eror []; |
Kovalev_D | 215:b58b887fd367 | 79 | extern int BSinMns []; |
Kovalev_D | 215:b58b887fd367 | 80 | extern int BSinPls []; |
Kovalev_D | 215:b58b887fd367 | 81 | extern int SinPls, SinMns; |
Kovalev_D | 215:b58b887fd367 | 82 | extern int TSinPls, TSinMns; |
Kovalev_D | 215:b58b887fd367 | 83 | |
Kovalev_D | 215:b58b887fd367 | 84 | //extern int BuffADC_32Point []; |
Kovalev_D | 215:b58b887fd367 | 85 | |
Kovalev_D | 215:b58b887fd367 | 86 | //extern unsigned int Buff_ADC_5 []; |
Kovalev_D | 215:b58b887fd367 | 87 | |
Kovalev_D | 197:7a05523bf588 | 88 | |
Kovalev_D | 197:7a05523bf588 | 89 | |
Kovalev_D | 197:7a05523bf588 | 90 | extern unsigned int PulseADC_16Point; |
Kovalev_D | 197:7a05523bf588 | 91 | extern unsigned int PulseADC_32Point; |
Kovalev_D | 215:b58b887fd367 | 92 | //extern unsigned int PulseADC_64Point; |
Kovalev_D | 197:7a05523bf588 | 93 | extern unsigned int PulseADC_32PointD; |
Kovalev_D | 197:7a05523bf588 | 94 | extern int ADC5Old,ADCDIF; |
Kovalev_D | 197:7a05523bf588 | 95 | |
igor_v | 0:8ad47e2b6f00 | 96 | extern unsigned int Buff_AMP []; |
Kovalev_D | 96:1c8536458119 | 97 | extern unsigned int Buff_AMP64P[]; |
Kovalev_D | 197:7a05523bf588 | 98 | extern struct SPI Spi; |
Kovalev_D | 197:7a05523bf588 | 99 | extern unsigned int ModArraySin []; |
Kovalev_D | 218:b4067cac75c0 | 100 | extern unsigned int ModArraySin32 []; |
Kovalev_D | 215:b58b887fd367 | 101 | //extern unsigned int ModArraySaw []; |
Kovalev_D | 215:b58b887fd367 | 102 | //extern unsigned int ModArrayTriangle []; |
Kovalev_D | 197:7a05523bf588 | 103 | extern unsigned int Mod; |
Kovalev_D | 197:7a05523bf588 | 104 | extern unsigned int TypeMod; |
igor_v | 114:5cc38a53d8a7 | 105 | extern void Init_SPI_Exchange(void); |
Kovalev_D | 112:4a96133a1311 | 106 | extern void PlcRegul(void); |
Kovalev_D | 211:ac8251b067d2 | 107 | extern void PLCRegul250(void); |
Kovalev_D | 211:ac8251b067d2 | 108 | extern void HFORegul(void); |
Kovalev_D | 211:ac8251b067d2 | 109 | extern void SPI_Exchange(void); |
Kovalev_D | 147:1aed74f19a8f | 110 | extern void ADS_Acum(void); |
Kovalev_D | 231:079835d508ef | 111 | |
Kovalev_D | 197:7a05523bf588 | 112 | extern void Modulator(void); |
Kovalev_D | 209:224e7331a061 | 113 | extern void ShowMod2(void); |
Kovalev_D | 231:079835d508ef | 114 | float BUTTER(float NewSample); |
Kovalev_D | 231:079835d508ef | 115 | float iir(float NewSampleB); |
Kovalev_D | 231:079835d508ef | 116 | float PLCF1hz(float NewSampleP); |
igor_v | 114:5cc38a53d8a7 | 117 | |
Kovalev_D | 158:0c8342e1837a | 118 | extern void ShowMod(void); |
Kovalev_D | 158:0c8342e1837a | 119 | |
igor_v | 1:f2adcae3d304 | 120 | #endif // SPI_H |