LevelMeter-Display  2.0
An ultrasonic Level Meter for Stormwater Cisterns
Data Fields
displayValues_t Struct Reference

Holds all values used for Display Purposes. More...

Data Fields

char checksumErrorChar
 Character to appear on Position "Checksum Error". More...
 
char * error
 Pointer to a string describing the most urgent error. More...
 
LITERS_T liters
 The current volume in liters. More...
 
LITERS_T litersLastHour
 The volume for the last hour. More...
 
double litersPerCent
 Filling of the cistern in percent. More...
 
LITERS_T litersPerHour
 The volume change for the running hour. More...
 
LITERS_T litersTemp
 For averaging. More...
 
LITERS_T litersToday
 The volume change for today. More...
 
LITERS_T litersYesterday
 The volume at last midnight. More...
 
uint8_t literUnitChar
 Holds a small or capital letter 'L'. More...
 
uint8_t nlitersTemp
 Number of values added to liters_temp. More...
 
char not10ErrorChar
 Character to appear on Position "More or less than 10 Values received". More...
 
char parityErrorChar
 Character to appear on Position "Parity Error". More...
 
char sensorDeadChar
 Character to appear on Position "SensorDead". More...
 
int8_t tempSemi
 The temperature in 0.5°C-units. More...
 

Detailed Description

Holds all values used for Display Purposes.

Display routines should only use values of this struct and every value you want to be displayed should be placed here. By this mechanism we can decouple updating values from displaying values.
Exceptions are e.g. the ADC-values for the display sensors as it does not make sense to duplicate them here.
There are some char-values for error flags. They contain the character value to be displayed on the corresponding position (i.e. SPACE if no error persists). They are set asynchronously but if the current page needs them, it takes them from here (just like all the other values).

Field Documentation

◆ checksumErrorChar

char checksumErrorChar

Character to appear on Position "Checksum Error".

Referenced by DoCflags(), ResetDisplayFlags(), and ShowScreen().

◆ error

char* error

Pointer to a string describing the most urgent error.

Referenced by CmdStat(), main(), ResetDisplayFlags(), and ShowScreen().

◆ liters

LITERS_T liters

The current volume in liters.

Referenced by CmdGetSensorValues(), CmdStat(), DoCflags(), DoTflags(), and ShowScreen().

◆ litersLastHour

LITERS_T litersLastHour

The volume for the last hour.

Referenced by DoTflags(), and ShowScreen().

◆ litersPerCent

double litersPerCent

Filling of the cistern in percent.

Referenced by DoCflags(), HBarGraphPerCent(), and VBarGraphPrepare().

◆ litersPerHour

LITERS_T litersPerHour

The volume change for the running hour.

Referenced by DoTflags(), and ShowScreen().

◆ litersTemp

LITERS_T litersTemp

For averaging.

Referenced by DoCflags(), and DoTflags().

◆ litersToday

LITERS_T litersToday

The volume change for today.

Referenced by DoTflags(), and ShowScreen().

◆ litersYesterday

LITERS_T litersYesterday

The volume at last midnight.

Referenced by DoTflags(), and ShowScreen().

◆ literUnitChar

uint8_t literUnitChar

Holds a small or capital letter 'L'.

Referenced by CmdDistance(), CmdGetSensorValues(), CmdStat(), DoCflags(), DoTflags(), ResetDisplayFlags(), and ShowScreen().

◆ nlitersTemp

uint8_t nlitersTemp

Number of values added to liters_temp.

Referenced by DoCflags(), and DoTflags().

◆ not10ErrorChar

char not10ErrorChar

Character to appear on Position "More or less than 10 Values received".

Referenced by DoTflags(), ResetDisplayFlags(), and ShowScreen().

◆ parityErrorChar

char parityErrorChar

Character to appear on Position "Parity Error".

Referenced by DoCflags(), ResetDisplayFlags(), and ShowScreen().

◆ sensorDeadChar

char sensorDeadChar

Character to appear on Position "SensorDead".

Referenced by DoCflags(), DoTflags(), ResetDisplayFlags(), and ShowScreen().

◆ tempSemi

int8_t tempSemi

The temperature in 0.5°C-units.

Referenced by CmdGetSensorValues(), CmdStat(), DoCflags(), DoTflags(), Init(), ISR(), and ShowScreen().


The documentation for this struct was generated from the following file: