Rev 2163 | Rev 2175 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 2163 | Rev 2168 | ||
|---|---|---|---|
| Line 6... | Line 6... | ||
| 6 | #ifdef sns_power_10000_PULSES_PER_KWH |
6 | #ifdef sns_power_10000_PULSES_PER_KWH |
| 7 | static uint8_t volatile tmpCounter=0; |
7 | static uint8_t volatile tmpCounter=0; |
| 8 | #endif |
8 | #endif |
| 9 | static uint8_t volatile StoreInEEPROM = 0; |
9 | static uint8_t volatile StoreInEEPROM = 0; |
| 10 | static uint8_t sns_power_ReportInterval = (uint8_t)sns_power_SEND_PERIOD; |
10 | static uint8_t sns_power_ReportInterval = (uint8_t)sns_power_SEND_PERIOD; |
| 11 | static uint16_t volatile MeasurmentBuffer[32]= { |
11 | static uint16_t volatile MeasurmentBuffer[32]= {0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff, |
| - | 12 | 0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff, |
|
| - | 13 | 0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff, |
|
| - | 14 | 0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff}; |
|
| 12 | static uint8_t volatile MeasurmentBufferPointer=0; |
15 | static uint8_t volatile MeasurmentBufferPointer=0; |
| 13 | static uint32_t volatile EnergyCounter=0; |
16 | static uint32_t volatile EnergyCounter=0; |
| 14 | #if sns_power_SEND_1_MIN_AVG == 1 |
17 | #if sns_power_SEND_1_MIN_AVG == 1 |
| 15 | static uint16_t volatile avgCounter = 0; |
18 | static uint16_t volatile avgCounter = 0; |
| 16 | #endif |
19 | #endif |
| Line 19... | Line 22... | ||
| 19 | static uint32_t volatile PreviusTimerValue_ch2, lastMeasurment_ch2; |
22 | static uint32_t volatile PreviusTimerValue_ch2, lastMeasurment_ch2; |
| 20 | 23 | ||
| 21 | #ifdef sns_power_10000_PULSES_PER_KWH |
24 | #ifdef sns_power_10000_PULSES_PER_KWH |
| 22 | static uint8_t volatile tmpCounter_ch2=0; |
25 | static uint8_t volatile tmpCounter_ch2=0; |
| 23 | #endif |
26 | #endif |
| 24 |
|
27 | static uint16_t volatile MeasurmentBuffer_ch2[32]= {0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff, |
| - | 28 | 0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff, |
|
| - | 29 | 0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff, |
|
| - | 30 | 0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff,0x0000ffff}; |
|
| 25 | static uint8_t volatile MeasurmentBufferPointer_ch2=0; |
31 | static uint8_t volatile MeasurmentBufferPointer_ch2=0; |
| 26 | static uint32_t volatile EnergyCounter_ch2=0; |
32 | static uint32_t volatile EnergyCounter_ch2=0; |
| 27 | #if sns_power_SEND_1_MIN_AVG == 1 |
33 | #if sns_power_SEND_1_MIN_AVG == 1 |
| 28 | static uint16_t volatile avgCounter_ch2 = 0; |
34 | static uint16_t volatile avgCounter_ch2 = 0; |
| 29 | #endif |
35 | #endif |