DCCpp
This is the library version of a program for Arduino to control railroading DCC devices.
DCCpp.h
Go to the documentation of this file.
1
//-------------------------------------------------------------------
2
#ifndef __DCCpp_H__
3
#define __DCCpp_H__
4
//-------------------------------------------------------------------
5
193
// Add a '//' at the beginning of the line to be in release mode.
195
#define DCCPP_DEBUG_MODE
196
198
// Verbose mode lets you see all actions done by the
199
// library, but with a real flood of text to console...
200
// Has no effect if DCCPP_DEBUG_MODE is not activated.
201
//#define DCCPP_DEBUG_VERBOSE_MODE
202
204
// The function DCCpp::printConfiguration()
205
// is very heavy in program memory. So to avoid problems
206
// you can make this function available by uncomment the next line.
207
#define DCCPP_PRINT_DCCPP
208
209
#ifdef DOXYGEN_SPECIFIC
210
213
#define DCCPP_DEBUG_MODE
214
216
#define DCCPP_DEBUG_VERBOSE_MODE
217
222
#define DCCPP_PRINT_DCCPP
223
224
#endif
225
226
// Inclusion area
227
//
228
230
//#define USE_TURNOUT
232
//#define USE_EEPROM
234
//#define USE_OUTPUT
236
//#define USE_SENSOR
238
#define USE_TEXTCOMMAND
239
240
//#define USE_ETHERNET_WIZNET_5100
242
//#define USE_ETHERNET_WIZNET_5500
244
//#define USE_ETHERNET_WIZNET_5200
246
#define USE_ETHERNET_ENC28J60
247
248
#if defined(USE_ETHERNET_WIZNET_5100) || defined(USE_ETHERNET_WIZNET_5500) || defined(USE_ETHERNET_WIZNET_5200) || defined(USE_ETHERNET_ENC28J60)
249
#define USE_ETHERNET
250
#endif
251
253
254
#include "DCCpp_Uno.h"
255
#include "PacketRegister.h"
256
#include "CurrentMonitor.h"
257
#include "Config.h"
258
#include "Comm.h"
259
260
#ifdef USE_TURNOUT
261
#include "Turnout.h"
262
#endif
263
#ifdef USE_EEPROM
264
#include "EEStore.h"
265
#endif
266
#ifdef USE_OUTPUT
267
#include "Outputs.h"
268
#endif
269
#ifdef USE_SENSOR
270
#include "Sensor.h"
271
#endif
272
#ifdef USE_TEXTCOMMAND
273
#include "TextCommand.h"
274
#endif
275
276
#include "DCCpp.hpp"
277
278
#endif
src
DCCpp.h
Generated on dim. nov. 12 2017 16:11:51 for DCCpp by
1.2.10