Ries Twisk / Mbed 2 deprecated JoyStick

Dependencies:   USBDevice mbed-rtos mbed

Fork of JoyStick by Ries Twisk

AnalogInFiltered.h

Committer:
rvt
Date:
2013-08-28
Revision:
0:33bc88c4ab31
Child:
1:5b2ab44eb31f

File content as of revision 0:33bc88c4ab31:

#ifndef ANALOGINFILTERED_H
#define ANALOGINFILTERED_H

#include "mbed.h"
#include "AnalogFilterInterface.h"

class AnalogInFiltered {
    private:
        AnalogIn *_ain;
        long   _lastValue;
        AnalogFilterInterface   *_filter;
    public:   
        AnalogInFiltered(AnalogFilterInterface *filter, PinName pin);
        ~AnalogInFiltered();
        void measure ();
        long getValue();
        bool getIsChanged(int offSet);
};

#endif