DCCpp
This is the library version of a program for Arduino to control railroading DCC devices.
DCCpp.h
1
//-------------------------------------------------------------------
2
#ifndef __DCCpp_H__
3
#define __DCCpp_H__
4
//-------------------------------------------------------------------
5
296
// Add a '//' at the beginning of the line to be in release mode.
298
//#define DCCPP_DEBUG_MODE
299
301
// Verbose mode lets you see all actions done by the
302
// library, but with a real flood of text to console...
303
// Has no effect if DCCPP_DEBUG_MODE is not activated.
304
//#define DCCPP_DEBUG_VERBOSE_MODE
305
307
// The function DCCpp::printConfiguration()
308
// is very heavy in program memory. So to avoid problems
309
// you can make this function available by uncomment the next line.
310
//#define DCCPP_PRINT_DCCPP
311
312
// Inclusion area
313
//
314
316
//#define USE_TURNOUT
318
//#define USE_EEPROM
320
//#define USE_OUTPUT
322
//#define USE_SENSOR
324
#define USE_TEXTCOMMAND
325
326
//#define USE_ETHERNET_WIZNET_5100
328
//#define USE_ETHERNET_WIZNET_5500
330
//#define USE_ETHERNET_WIZNET_5200
332
//#define USE_ETHERNET_ENC28J60
333
334
#if defined(USE_ETHERNET_WIZNET_5100) || defined(USE_ETHERNET_WIZNET_5500) || defined(USE_ETHERNET_WIZNET_5200) || defined(USE_ETHERNET_ENC28J60)
335
#define USE_ETHERNET
336
#endif
337
339
340
#include "DCCpp_Uno.h"
341
#include "PacketRegister.h"
342
#include "CurrentMonitor.h"
343
#include "Config.h"
344
#include "Comm.h"
345
346
#ifdef USE_TURNOUT
347
#include "Turnout.h"
348
#endif
349
#ifdef USE_EEPROM
350
#include "EEStore.h"
351
#endif
352
#ifdef USE_OUTPUT
353
#include "Outputs.h"
354
#endif
355
#ifdef USE_SENSOR
356
#include "Sensor.h"
357
#endif
358
#ifdef USE_TEXTCOMMAND
359
#include "TextCommand.h"
360
#endif
361
362
#include "DCCpp.hpp"
363
364
#ifdef DOXYGEN_SPECIFIC
365
// DO NOT CHANGE THE LINES IN THIS BLOCK 'DOXYGEN_SPECIFIC' : Only here for documentation !
366
370
#define DCCPP_DEBUG_MODE
371
373
#define DCCPP_DEBUG_VERBOSE_MODE
374
379
#define DCCPP_PRINT_DCCPP
380
381
#endif
382
383
#endif
src
DCCpp.h
Generated on dim. janv. 7 2018 17:46:35 for DCCpp by
1.2.10