Go to the source code of this file.
| #define CONF_MAGIC 0x3797 |
Change this value if confStruct_t becomes incompatible to previous versions!
Number of available signal outputs.
| #define SNDMASK_ALERT1ALWAYS 1 |
Signal 2 Alert is played outside silent period, too.
| #define SNDMASK_ALERT2ALWAYS 2 |
Signal 1 Alert is played outside silent period, too.
| #define SNDMASK_HOURBELL 4 |
Big Ben is played every hour.
| Enumerator |
|---|
| CIST_CONST_AREA |
Cistern with constant area over volume.
|
| CIST_HORIZ_CYL |
Cistern of horizontal cylinder type.
|
| CIST_SPHERE |
Spherical cistern.
|
Lists the current configuration values.
Prints a verbose explanation of the configuration data to the host.
| void DumpConfigSignal |
( |
uint8_t |
number | ) |
|
DumpConfig Helper Function for Optocoupler outputs.
- Parameters
-
| number | The Number of the Signal Output (Zero-based) |
Reads the Config-Struct from EEPROM into config.
Only the config-struct in RAM will be used. Changes in config will only become permanent if you use a write-command. There is a configDirty-flag that is set by every routine that changes config and is used to remind the user to execute a write-command.
Checks if sounds may currently be played.
"Curremtly" means at the actual time-of-day. Check this function before you play sounds that should not be always enabled.
- Returns
- true if sounds are ok, false if not
| void WriteConfig |
( |
void |
| ) |
|
Writes the Config-Struct to EEPROM.
The Configuration. It is read on startup from the EEPROM.
Set to true by routines affecting configuration if config memory needs to be saved to the EEPROM.