source: svn/trunk/zasc/app_c/DST_EEPROM.h @ 37

Last change on this file since 37 was 2, checked in by jglee, 11 years ago

first commit

File size: 2.2 KB
Line 
1#ifndef __DST_EEPROM_H__
2#define __DST_EEPROM_H__
3
4#include "DST_GlobalVariables.h"
5//#include "DST_WinMenu.h"
6
7#if 0
8____ReadWrite_EEPROM___()
9#endif
10
11void DST_EEPROM_FactoryInit(void);
12
13void DST_EEPROM_SetConfig(const char * name, int value);
14int DST_EEPROM_GetConfig(const char *name);
15
16#define DST_EEPROM_SetNeedReset(value) DST_EEPROM_SetConfig("NeedReset", value)
17#define DST_EEPROM_GetNeedReset() DST_EEPROM_GetConfig("NeedReset")
18
19#define DST_EEPROM_SetFirst(value) DST_EEPROM_SetConfig("First", value)
20#define DST_EEPROM_GetFirst() DST_EEPROM_GetConfig("First")
21
22#define DST_EEPROM_SetTuneMode(value) DST_EEPROM_SetConfig("TuneMode", value)
23#define DST_EEPROM_GetTuneMode() DST_EEPROM_GetConfig("TuneMode")
24
25#define DST_EEPROM_SetVolume(value) DST_EEPROM_SetConfig("Volume", value)
26#define DST_EEPROM_GetVolume() DST_EEPROM_GetConfig("Volume")
27
28#define DST_EEPROM_SetCC(value) DST_EEPROM_SetConfig("CC", value)
29#define DST_EEPROM_GetCC() DST_EEPROM_GetConfig("CC")
30
31#define DST_EEPROM_SetRF(value) DST_EEPROM_SetConfig("RF", value)
32#define DST_EEPROM_GetRF() DST_EEPROM_GetConfig("RF")
33
34#define DST_EEPROM_SetProgramNumber(value) DST_EEPROM_SetConfig("program_number", value)
35#define DST_EEPROM_GetProgramNumber() DST_EEPROM_GetConfig("program_number")
36
37void DST_EEPROM_SetAspect(bool bSource4x3,  int nVal) ;
38int DST_EEPROM_GetAspect(bool bSource4x3);
39
40
41#define DST_EEPROM_SetAudioPref(value) DST_EEPROM_SetConfig("AudioPref",value)
42#define DST_EEPROM_GetAudioPref() DST_EEPROM_GetConfig("AudioPref")
43
44#define DST_EEPROM_SetVI(value) DST_EEPROM_SetConfig("VI",value)
45#define DST_EEPROM_GetVI() DST_EEPROM_GetConfig("VI")
46
47#define DST_EEPROM_SetPreferredConn(value) DST_EEPROM_SetConfig("PreferredConn",value)
48#define DST_EEPROM_GetPreferredConn() DST_EEPROM_GetConfig("PreferredConn")
49
50void DST_EEPROM_SetPassword(DS_U8* nVal);
51
52void DST_SetSleepTimer(DS_U8 value);
53
54DS_U8 DST_GetSleepTimer();
55
56#define DST_EEPROM_SetMinRF(value) DST_EEPROM_SetConfig("MinRF",value)
57#define DST_EEPROM_GetMinRF() DST_EEPROM_GetConfig("MinRF")
58#define DST_EEPROM_SetMaxRF(value) DST_EEPROM_SetConfig("MaxRF",value)
59#define DST_EEPROM_GetMaxRF() DST_EEPROM_GetConfig("MaxRF")
60
61#endif// __DST_EEPROM_H__
62
63       
Note: See TracBrowser for help on using the repository browser.