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
266
// Add a '//' at the beginning of the line to be in release mode.
268
//#define DCCPP_DEBUG_MODE
269
271
// Verbose mode lets you see all actions done by the
272
// library, but with a real flood of text to console...
273
// Has no effect if DCCPP_DEBUG_MODE is not activated.
274
//#define DCCPP_DEBUG_VERBOSE_MODE
275
277
// The function DCCpp::printConfiguration()
278
// is very heavy in program memory. So to avoid problems
279
// you can make this function available by uncomment the next line.
280
//#define DCCPP_PRINT_DCCPP
281
282
// Inclusion area
283
//
284
286
#define USE_TURNOUT
287
288
#define USE_EEPROM
289
290
#define USE_OUTPUT
291
292
#define USE_SENSOR
293
294
#define USE_TEXTCOMMAND
295
296
//#define USE_ETHERNET_WIZNET_5100
298
//#define USE_ETHERNET_WIZNET_5500
300
//#define USE_ETHERNET_WIZNET_5200
302
#define USE_ETHERNET_ENC28J60
303
304
#if defined(USE_ETHERNET_WIZNET_5100) || defined(USE_ETHERNET_WIZNET_5500) || defined(USE_ETHERNET_WIZNET_5200) || defined(USE_ETHERNET_ENC28J60)
305
#define USE_ETHERNET
306
#endif
307
309
310
#include "DCCpp_Uno.h"
311
#include "PacketRegister.h"
312
#include "CurrentMonitor.h"
313
#include "Config.h"
314
#include "Comm.h"
315
316
#ifdef USE_TURNOUT
317
#include "Turnout.h"
318
#endif
319
#ifdef USE_EEPROM
320
#include "EEStore.h"
321
#endif
322
#ifdef USE_OUTPUT
323
#include "Outputs.h"
324
#endif
325
#ifdef USE_SENSOR
326
#include "Sensor.h"
327
#endif
328
#ifdef USE_TEXTCOMMAND
329
#include "TextCommand.h"
330
#endif
331
332
#include "DCCpp.hpp"
333
334
#ifdef DOXYGEN_SPECIFIC
335
// DO NOT CHANGE THE LINES IN THIS BLOCK 'DOXYGEN_SPECIFIC' : Only here for documentation !
336
340
#define DCCPP_DEBUG_MODE
341
343
#define DCCPP_DEBUG_VERBOSE_MODE
344
349
#define DCCPP_PRINT_DCCPP
350
351
#endif
352
353
#endif
src
DCCpp.h
Generated on lun. nov. 27 2017 16:55:13 for DCCpp by
1.2.10