fremoclock  1_3A01
FREMO Clock - Software for UTG
UserSettings.h File Reference

Subroutines for UserSettings. More...

Go to the source code of this file.

Functions

void UserSettingsSetEepromStatus (uint8_t status)
 Write eeprom status to EEPROM. More...
 
void UserSettingsSetSystemStatus (uint8_t status)
 Write system status to EEPROM. More...
 
uint8_t UserSettingsGetEepromStatus (void)
 Read eeprom status from EEPROM. More...
 
uint8_t UserSettingsGetSystemStatus (void)
 Read system status from EEPROM. More...
 
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. More...
 
uint8_t UserSettingsGetStartMinute (void)
 Read minute of startTime from EEPROM. More...
 
uint8_t UserSettingsGetStartHour (void)
 Read hour of startTime from EEPROM. More...
 
uint8_t UserSettingsGetEndMinute (void)
 Read minute of endTime from EEPROM. More...
 
uint8_t UserSettingsGetEndHour (void)
 Read hour of endTime from EEPROM. More...
 
uint8_t UserSettingsGetCurrentMinute (void)
 Read minute of current clock time from EEPROM. More...
 
uint8_t UserSettingsGetCurrentHour (void)
 Read hour of current clock time from EEPROM. More...
 
uint8_t UserSettingsGetFactor (void)
 Read factor from EEPROM. More...
 
uint16_t UserSettingsGetPulse (void)
 Read pulse width from EEPROM. More...
 

Detailed Description

Subroutines for UserSettings.

With:

  • reading and setting system status
  • reading and setting eeprom status
  • reading and setting clock values

Target:

  • AtMega128 on PROTO_128 and AtMega48/88/168

Software

  • AVR-GCC

History:

  • 150424 First implementation
Version
$Id: UserSettings.h 159 2016-09-03 06:51:47Z pischky $
Author
Stefan Seibt [StS] stumm.nosp@m.l@us.nosp@m.ers.s.nosp@m.ourc.nosp@m.eforg.nosp@m.e.ne.nosp@m.t
Date
24-Apr-2015

Definition in file UserSettings.h.

Function Documentation

uint8_t UserSettingsGetCurrentHour ( void  )

Read hour of current clock time from EEPROM.

Returns
the hour of current clock time

Definition at line 157 of file UserSettings.c.

uint8_t UserSettingsGetCurrentMinute ( void  )

Read minute of current clock time from EEPROM.

Returns
the minute of current clock time

Definition at line 151 of file UserSettings.c.

uint8_t UserSettingsGetEepromStatus ( void  )

Read eeprom status from EEPROM.

Returns
the status

Definition at line 86 of file UserSettings.c.

uint8_t UserSettingsGetEndHour ( void  )

Read hour of endTime from EEPROM.

Returns
the hour of endTime

Definition at line 145 of file UserSettings.c.

uint8_t UserSettingsGetEndMinute ( void  )

Read minute of endTime from EEPROM.

Returns
the minute of endTime

Definition at line 139 of file UserSettings.c.

uint8_t UserSettingsGetFactor ( void  )

Read factor from EEPROM.

Returns
the factor

Definition at line 163 of file UserSettings.c.

uint16_t UserSettingsGetPulse ( void  )

Read pulse width from EEPROM.

Returns
the pulse width

Definition at line 170 of file UserSettings.c.

uint8_t UserSettingsGetStartHour ( void  )

Read hour of startTime from EEPROM.

Returns

Definition at line 133 of file UserSettings.c.

uint8_t UserSettingsGetStartMinute ( void  )

Read minute of startTime from EEPROM.

Returns
the minute of startTime

Definition at line 127 of file UserSettings.c.

uint8_t UserSettingsGetSystemStatus ( void  )

Read system status from EEPROM.

Returns
the status

Definition at line 92 of file UserSettings.c.

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.

Parameters
factorthe factor to write
pulsethe pulse width to write
startMinuteminute of startTime
startHourhour of startTime
endMinuteminute of endTime
endHourhour of endTime
minuteminute of current clock time
hourhour of current clock time

Definition at line 111 of file UserSettings.c.

void UserSettingsSetEepromStatus ( uint8_t  status)

Write eeprom status to EEPROM.

Parameters
statusnew value for the status

Definition at line 104 of file UserSettings.c.

void UserSettingsSetSystemStatus ( uint8_t  status)

Write system status to EEPROM.

Parameters
statusnew value for the status

Definition at line 98 of file UserSettings.c.