mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-07-28 18:03:45 +02:00
25 lines
668 B
C++
25 lines
668 B
C++
#ifndef SensorGroup_h
|
|
#define SensorGroup_h
|
|
#include <Arduino.h>
|
|
#include "defines.h"
|
|
#include "IODevice.h"
|
|
#include "StringFormatter.h"
|
|
|
|
|
|
// reference to the optional exrail built function which contains the
|
|
// calls to SensorGroup::doSensorGroup
|
|
|
|
enum GroupProcess:byte {PULLUP,PRINT,CHECK};
|
|
|
|
class SensorGroup {
|
|
public:
|
|
static void checkAll();
|
|
static void printAll(Print * serial);
|
|
static void pullupAll();
|
|
static void doSensorGroup(VPIN vpin, int nPins, byte* statebits,
|
|
GroupProcess action, Print * serial);
|
|
private:
|
|
static void doExrailSensorGroup(GroupProcess action, Print * stream);
|
|
};
|
|
#endif // SensorGroup_h
|