69 LOG_P(
"\n\rUserInterfaceCommonDataInit\n\r");
77 LOG_P(
"\n\rEEPROM Geloescht.:-((\n\r");
104 LOG_P(
"\n\rEEPROM OK!!:-))\n\r");
144 LOG_P(
"\n\rUserInterfaceCommonDataShutDown\n\r");
Minimal uart library with output only for debugging.
A struct with hour and minute.
void ClockSetTime(fclock_t newValue)
Set actual time.
uint8_t UserSettingsGetFactor(void)
Read factor from EEPROM.
void UserInterfaceCommonDataShutDown(void)
Write common data to EEPROM.
uint8_t ClockReadTimeFactor(void)
Get time factor.
uint8_t ClockReadEndTimeMinute(void)
Get the minute of the end time.
Subroutines for UserInterfaceCommonData.
void ClockSetStartTimeMinute(uint8_t ucMinute)
Set the minute of the start time.
uint8_t UserSettingsGetStartMinute(void)
Read minute of startTime from EEPROM.
#define SYSTEM_STATUS_ENDTIME
end time active? default 0
static uint8_t ucEepromStatus
EEPROM Status.
#define SYSTEM_STATUS_GOT_DIRTY
got dirty bit fromm eeprom -> no shutdown happend
void ClockSetStartTimeHour(uint8_t ucHour)
Set the hour of the start time.
uint8_t minute
minute value 0..59
void ClockSetEndTimeHour(uint8_t ucHour)
Set the hour of the end time.
#define LOG_P(FMT,...)
Printf like macro to log to uart.
void ClockSetEndTimeMinute(uint8_t ucMinute)
Set the minute of the end time.
void UserSettingsSetSystemStatus(uint8_t status)
Write system status to EEPROM.
Subroutines for UserSettings.
uint8_t UserSettingsGetEepromStatus(void)
Read eeprom status from EEPROM.
uint8_t UserSettingsGetCurrentMinute(void)
Read minute of current clock time from EEPROM.
uint16_t UserSettingsGetPulse(void)
Read pulse width from EEPROM.
#define SYSTEM_STATUS_EEPROM_ERASED
eeprom erased; set default parameter.
uint8_t ClockReadEndTimeHour(void)
Get the hour of the end time.
void UserSettingsSaveClockValues(uint8_t factor, uint16_t pulse, uint8_t startMinute, uint8_t startHour, uint8_t endMinute, uint8_t endHour, uint8_t minute, uint8_t hour)
Write factor, pulse width, startTime, endTime and current clock to EEPROM.
uint8_t hour
hour value 0..23
void ClockSetTimeFactor(uint8_t ucFactor)
Set time factor.
uint16_t ClockReadPulse(void)
Get length of pulse length in 100ms.
uint8_t UserSettingsGetStartHour(void)
Read hour of startTime from EEPROM.
#define SYSTEM_STATUS_DIRTY
dirty bit, set by init, cleared by shutdown
uint8_t ClockReadStartTimeHour(void)
Get the hour of the start time.
void ClockSetPulse(uint16_t uiPulse)
Set length of pulse length in 100ms.
uint8_t ClockReadStartTimeMinute(void)
Get the minute of the start time.
uint8_t UserSettingsGetEndHour(void)
Read hour of endTime from EEPROM.
static uint8_t ucSystemStatus
System Status.
User function called by timer ISR.
uint8_t UserSettingsGetSystemStatus(void)
Read system status from EEPROM.
void UserSettingsSetEepromStatus(uint8_t status)
Write eeprom status to EEPROM.
uint8_t UserInterfaceCommonDataInit(void)
Read data from EEPROM and initialize common data.
fclock_t ClockGetTime(void)
Get actual time.
uint8_t UserSettingsGetEndMinute(void)
Read minute of endTime from EEPROM.
uint8_t UserSettingsGetCurrentHour(void)
Read hour of current clock time from EEPROM.