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
312
// Add a '//' at the beginning of the line to be in release mode.
314
//#define DCCPP_DEBUG_MODE
315
317
// Verbose mode lets you see all actions done by the
318
// library, but with a real flood of text to console...
319
// Has no effect if DCCPP_DEBUG_MODE is not activated.
320
//#define DCCPP_DEBUG_VERBOSE_MODE
321
323
// The function DCCpp::printConfiguration()
324
// is very heavy in program memory. So to avoid problems
325
// you can make this function available by uncomment the next line.
326
//#define DCCPP_PRINT_DCCPP
327
328
// Inclusion area
329
//
330
332
//#define USE_TURNOUT
334
//#define USE_EEPROM
336
//#define USE_OUTPUT
338
//#define USE_SENSOR
340
#define USE_TEXTCOMMAND
341
342
//#define USE_ETHERNET_WIZNET_5100
344
//#define USE_ETHERNET_WIZNET_5500
346
//#define USE_ETHERNET_WIZNET_5200
348
//#define USE_ETHERNET_ENC28J60
349
350
#if defined(USE_ETHERNET_WIZNET_5100) || defined(USE_ETHERNET_WIZNET_5500) || defined(USE_ETHERNET_WIZNET_5200) || defined(USE_ETHERNET_ENC28J60)
351
#define USE_ETHERNET
352
#endif
353
355
356
#include "DCCpp_Uno.h"
357
#include "PacketRegister.h"
358
#include "CurrentMonitor.h"
359
#include "Config.h"
360
#include "Comm.h"
361
362
#ifdef USE_TURNOUT
363
#include "Turnout.h"
364
#endif
365
#ifdef USE_EEPROM
366
#include "EEStore.h"
367
#endif
368
#ifdef USE_OUTPUT
369
#include "Outputs.h"
370
#endif
371
#ifdef USE_SENSOR
372
#include "Sensor.h"
373
#endif
374
#ifdef USE_TEXTCOMMAND
375
#include "TextCommand.h"
376
#endif
377
378
#include "DCCpp.hpp"
379
380
#ifdef DOXYGEN_SPECIFIC
381
// DO NOT CHANGE THE LINES IN THIS BLOCK 'DOXYGEN_SPECIFIC' : Only here for documentation !
382
386
#define DCCPP_DEBUG_MODE
387
389
#define DCCPP_DEBUG_VERBOSE_MODE
390
395
#define DCCPP_PRINT_DCCPP
396
397
#endif
398
399
#endif
src
DCCpp.h
Generated on lun. janv. 8 2018 17:56:21 for DCCpp by
1.2.10