DCCpp
This is the library version of a program for Arduino to control railroading DCC devices.
EEStore.h
1
/**********************************************************************
2
3
EEStore.h
4
COPYRIGHT (c) 2013-2016 Gregg E. Berman
5
6
Part of DCC++ BASE STATION for the Arduino
7
8
**********************************************************************/
9
10
#ifndef EEStore_h
11
#define EEStore_h
12
13
#include "DCCpp.h"
14
15
#ifdef USE_EEPROM
16
17
#define EESTORE_ID "DCC++"
18
20
struct
EEStoreData
{
21
char
id
[
sizeof
(EESTORE_ID)+1];
22
#ifdef USE_TURNOUT
23
int
nTurnouts
;
24
#endif
25
#ifdef USE_SENSOR
26
int
nSensors
;
27
#endif
28
#ifdef USE_OUTPUT
29
int
nOutputs
;
30
#endif
31
};
32
43
struct
EEStore
{
44
//static EEStore *eeStore; /**< Static pointer to an instance of EEStore class.*/
45
static
EEStoreData
data
;
46
static
int
eeAddress
;
48
static
void
init
();
49
static
void
reset
();
53
static
int
pointer
();
57
static
void
advance
(
int
inIncrement);
61
static
bool
needsRefreshing
();
62
static
void
store
();
63
static
void
clear
();
64
};
65
66
#endif
67
#endif
68
EEStore::clear
static void clear()
Definition:
EEStore.cpp:68
EEStore::store
static void store()
Definition:
EEStore.cpp:90
EEStore::needsRefreshing
static bool needsRefreshing()
Definition:
EEStore.cpp:110
EEStore::advance
static void advance(int inIncrement)
Definition:
EEStore.cpp:128
EEStore::pointer
static int pointer()
Definition:
EEStore.cpp:139
EEStore::reset
static void reset()
Definition:
EEStore.cpp:134
EEStore::init
static void init()
Definition:
EEStore.cpp:24
EEStore::eeAddress
static int eeAddress
Definition:
EEStore.h:46
EEStore::data
static EEStoreData data
Definition:
EEStore.h:45
EEStore
Definition:
EEStore.h:43
EEStoreData::nOutputs
int nOutputs
Definition:
EEStore.h:29
EEStoreData::nSensors
int nSensors
Definition:
EEStore.h:26
EEStoreData::nTurnouts
int nTurnouts
Definition:
EEStore.h:23
EEStoreData
Definition:
EEStore.h:20
src
EEStore.h
Generated on ven. déc. 22 2017 14:02:05 for DCCpp by
1.2.10