![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
forkd
Fork of LGstaandart by
SPI.h@112:4a96133a1311, 2016-04-04 (annotated)
- Committer:
- Kovalev_D
- Date:
- Mon Apr 04 11:09:56 2016 +0000
- Revision:
- 112:4a96133a1311
- Parent:
- 110:6406b7ac0442
- Child:
- 113:8be429494918
IRQ
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 | 112:4a96133a1311 | 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 | |
igor_v | 110:6406b7ac0442 | 25 | |
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 | 112:4a96133a1311 | 29 | unsigned int PLC_NewData; |
Kovalev_D | 112:4a96133a1311 | 30 | |
igor_v | 110:6406b7ac0442 | 31 | |
igor_v | 110:6406b7ac0442 | 32 | |
igor_v | 0:8ad47e2b6f00 | 33 | }; |
igor_v | 110:6406b7ac0442 | 34 | |
igor_v | 110:6406b7ac0442 | 35 | |
igor_v | 110:6406b7ac0442 | 36 | |
Kovalev_D | 99:3d8f206ceac2 | 37 | extern unsigned int Cur_Amp; |
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 | 112:4a96133a1311 | 41 | //extern unsigned int Temp_AMP; |
Kovalev_D | 86:398da56ef751 | 42 | extern unsigned int Temp_ADC_2; |
Kovalev_D | 86:398da56ef751 | 43 | extern unsigned int Temp_ADC_3; |
Kovalev_D | 86:398da56ef751 | 44 | extern unsigned int Temp_ADC_4; |
Kovalev_D | 86:398da56ef751 | 45 | extern unsigned int Temp_ADC_5; |
Kovalev_D | 96:1c8536458119 | 46 | extern unsigned int Temp_AMP64P; |
Kovalev_D | 86:398da56ef751 | 47 | |
igor_v | 0:8ad47e2b6f00 | 48 | extern unsigned int Buff_ADC_1 []; |
igor_v | 0:8ad47e2b6f00 | 49 | extern unsigned int Buff_ADC_2 []; |
igor_v | 0:8ad47e2b6f00 | 50 | extern unsigned int Buff_ADC_3 []; |
igor_v | 0:8ad47e2b6f00 | 51 | extern unsigned int Buff_ADC_4 []; |
igor_v | 0:8ad47e2b6f00 | 52 | extern unsigned int Buff_ADC_5 []; |
igor_v | 0:8ad47e2b6f00 | 53 | extern unsigned int Buff_AMP []; |
Kovalev_D | 96:1c8536458119 | 54 | extern unsigned int Buff_AMP64P[]; |
igor_v | 0:8ad47e2b6f00 | 55 | extern struct SPI Spi; |
Kovalev_D | 89:a0d344db227e | 56 | extern void Init_SPI_Exchange(void); |
igor_v | 1:f2adcae3d304 | 57 | |
Kovalev_D | 112:4a96133a1311 | 58 | |
Kovalev_D | 112:4a96133a1311 | 59 | extern void PlcRegul(void); |
igor_v | 1:f2adcae3d304 | 60 | #endif // SPI_H |