Arnaud VALLEY / Mbed 2 deprecated Pinscape_Controller_V2_arnoz

Dependencies:   mbed FastIO FastPWM USBDevice

nullSensor.h

Committer:
mjr
Date:
2016-03-05
Revision:
52:8298b2a73eb2
Parent:
48:058ace2aed1d

File content as of revision 52:8298b2a73eb2:

// Null plunger sensor
//
// This file defines a class that provides the plunger sensor interface
// that the main program expects, but with no physical sensor underneath.

#ifndef NULLSENSOR_H
#define NULLSENSOR_H

#include "plunger.h"

class PlungerSensorNull: public PlungerSensor
{
public:
    PlungerSensorNull() { }
    
    virtual void init() { }
    virtual bool read(PlungerReading &r) { return false; }
    virtual uint32_t getAvgScanTime() { return 0; }
};

#endif /* NULLSENSOR_H */