![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
fork
Fork of LG by
SPI.h@213:9953db9543d6, 2017-07-26 (annotated)
- Committer:
- Kovalev_D
- Date:
- Wed Jul 26 13:24:39 2017 +0000
- Revision:
- 213:9953db9543d6
- Parent:
- 211:ac8251b067d2
- Child:
- 214:4c70e452c491
work
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 |
igor_v | 0:8ad47e2b6f00 | 6 | |
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 | |
igor_v | 0:8ad47e2b6f00 | 11 | unsigned int ADC1; |
igor_v | 0:8ad47e2b6f00 | 12 | unsigned int ADC2; |
igor_v | 0:8ad47e2b6f00 | 13 | unsigned int ADC3; |
igor_v | 0:8ad47e2b6f00 | 14 | unsigned int ADC4; |
igor_v | 0:8ad47e2b6f00 | 15 | unsigned int ADC5; |
igor_v | 0:8ad47e2b6f00 | 16 | |
igor_v | 110:6406b7ac0442 | 17 | unsigned int ADC1_Accum; |
igor_v | 110:6406b7ac0442 | 18 | unsigned int ADC2_Accum; |
igor_v | 110:6406b7ac0442 | 19 | unsigned int ADC3_Accum; |
igor_v | 110:6406b7ac0442 | 20 | unsigned int ADC4_Accum; |
igor_v | 110:6406b7ac0442 | 21 | unsigned int ADC5_Accum; |
igor_v | 110:6406b7ac0442 | 22 | unsigned 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 | }; |
igor_v | 110:6406b7ac0442 | 31 | |
Kovalev_D | 209:224e7331a061 | 32 | extern unsigned int ADC5New; |
igor_v | 110:6406b7ac0442 | 33 | |
Kovalev_D | 99:3d8f206ceac2 | 34 | extern unsigned int Cur_Amp; |
Kovalev_D | 99:3d8f206ceac2 | 35 | extern int Znak_Amp; |
Kovalev_D | 109:ee0cff33ad3b | 36 | extern int AD_Regul ; |
Kovalev_D | 92:c892f0311aa7 | 37 | extern unsigned int SinPLC[]; |
Kovalev_D | 112:4a96133a1311 | 38 | //extern unsigned int Temp_AMP; |
Kovalev_D | 86:398da56ef751 | 39 | extern unsigned int Temp_ADC_2; |
Kovalev_D | 86:398da56ef751 | 40 | extern unsigned int Temp_ADC_3; |
Kovalev_D | 86:398da56ef751 | 41 | extern unsigned int Temp_ADC_4; |
Kovalev_D | 86:398da56ef751 | 42 | extern unsigned int Temp_ADC_5; |
Kovalev_D | 96:1c8536458119 | 43 | extern unsigned int Temp_AMP64P; |
Kovalev_D | 213:9953db9543d6 | 44 | extern int RegulADC,DeltaRegul,tempDeltaRegul; |
igor_v | 0:8ad47e2b6f00 | 45 | extern unsigned int Buff_ADC_1 []; |
igor_v | 0:8ad47e2b6f00 | 46 | extern unsigned int Buff_ADC_2 []; |
igor_v | 0:8ad47e2b6f00 | 47 | extern unsigned int Buff_ADC_3 []; |
igor_v | 0:8ad47e2b6f00 | 48 | extern unsigned int Buff_ADC_4 []; |
Kovalev_D | 197:7a05523bf588 | 49 | |
Kovalev_D | 197:7a05523bf588 | 50 | |
Kovalev_D | 197:7a05523bf588 | 51 | |
igor_v | 0:8ad47e2b6f00 | 52 | extern unsigned int Buff_ADC_5 []; |
Kovalev_D | 197:7a05523bf588 | 53 | |
Kovalev_D | 197:7a05523bf588 | 54 | |
Kovalev_D | 197:7a05523bf588 | 55 | extern unsigned int BuffADC_32Point []; |
Kovalev_D | 197:7a05523bf588 | 56 | extern unsigned int BuffADC_64Point []; |
Kovalev_D | 197:7a05523bf588 | 57 | extern unsigned int BuffADC_16Point []; |
Kovalev_D | 197:7a05523bf588 | 58 | extern unsigned int BuffADC_32PointD []; |
Kovalev_D | 197:7a05523bf588 | 59 | extern unsigned int Buff_Restored_Mod[]; |
Kovalev_D | 197:7a05523bf588 | 60 | |
Kovalev_D | 197:7a05523bf588 | 61 | |
Kovalev_D | 197:7a05523bf588 | 62 | extern unsigned int PulseADC_16Point; |
Kovalev_D | 197:7a05523bf588 | 63 | extern unsigned int PulseADC_32Point; |
Kovalev_D | 197:7a05523bf588 | 64 | extern unsigned int PulseADC_64Point; |
Kovalev_D | 197:7a05523bf588 | 65 | extern unsigned int PulseADC_32PointD; |
Kovalev_D | 197:7a05523bf588 | 66 | extern int ADC5Old,ADCDIF; |
Kovalev_D | 197:7a05523bf588 | 67 | |
igor_v | 0:8ad47e2b6f00 | 68 | extern unsigned int Buff_AMP []; |
Kovalev_D | 96:1c8536458119 | 69 | extern unsigned int Buff_AMP64P[]; |
Kovalev_D | 197:7a05523bf588 | 70 | extern struct SPI Spi; |
Kovalev_D | 197:7a05523bf588 | 71 | extern unsigned int ModArraySin []; |
Kovalev_D | 197:7a05523bf588 | 72 | extern unsigned int ModArraySaw []; |
Kovalev_D | 197:7a05523bf588 | 73 | extern unsigned int ModArrayTriangle []; |
Kovalev_D | 197:7a05523bf588 | 74 | extern unsigned int Mod; |
Kovalev_D | 197:7a05523bf588 | 75 | extern unsigned int TypeMod; |
igor_v | 114:5cc38a53d8a7 | 76 | extern void Init_SPI_Exchange(void); |
Kovalev_D | 112:4a96133a1311 | 77 | extern void PlcRegul(void); |
Kovalev_D | 211:ac8251b067d2 | 78 | extern void PLCRegul250(void); |
Kovalev_D | 211:ac8251b067d2 | 79 | extern void HFORegul(void); |
Kovalev_D | 211:ac8251b067d2 | 80 | extern void SPI_Exchange(void); |
Kovalev_D | 147:1aed74f19a8f | 81 | extern void ADS_Acum(void); |
Kovalev_D | 197:7a05523bf588 | 82 | extern void InitMOD(void); |
Kovalev_D | 197:7a05523bf588 | 83 | extern void Modulator(void); |
Kovalev_D | 209:224e7331a061 | 84 | extern void ShowMod2(void); |
igor_v | 114:5cc38a53d8a7 | 85 | |
Kovalev_D | 158:0c8342e1837a | 86 | extern void ShowMod(void); |
Kovalev_D | 158:0c8342e1837a | 87 | |
igor_v | 1:f2adcae3d304 | 88 | #endif // SPI_H |