Revision 22, 0.8 kB
(checked in by phil, 15 years ago)
|
deleted some test files,
gas meter values (unsigned long long) now updated.
added epoch time handling
|
Line | |
---|
1 |
|
---|
2 |
void initMeterItems(void); |
---|
3 |
unsigned long long getEpochTimeWithMs(void); |
---|
4 |
|
---|
5 |
#define NUMBER_OF_METERS 10 /* the number of meters we use */ |
---|
6 |
|
---|
7 |
#define METER_INDEX_GAS 0 /* index of the gas meter data */ |
---|
8 |
|
---|
9 |
|
---|
10 |
typedef struct |
---|
11 |
{ |
---|
12 |
portSHORT meterEnabled; /* 0: item not used, 1: meter enabled */ |
---|
13 |
unsigned long long timeLastTick; /* when did the last tick occur? epoch time in seconds */ |
---|
14 |
unsigned long long timeBeforeLastTick; /* when did the tick before the last tick occur? epoch time in seconds */ |
---|
15 |
portLONG valueLastTick; /* what value did we have at the last tick? */ |
---|
16 |
portLONG valueBeforeLastTick; /* what value did we have at the tick before the last tick? */ |
---|
17 |
} meterItem; |
---|
18 |
|
---|
19 |
meterItem meterItems[NUMBER_OF_METERS]; /* the data for all the meters */ |
---|
20 |
|
---|