sef

Dependencies:   mbed

Fork of Bewegungen_mit_Sensor by kings

MotorEncoder.h

Committer:
EHess
Date:
2017-05-16
Revision:
2:365bf16abbf6
Parent:
1:d40ff07e2fe0

File content as of revision 2:365bf16abbf6:

#ifndef MOTOR_ENCODER_H
#define MOTOR_ENCODER_H

#include <cstdlib>
#include <mbed.h>

//E. Hess
//MotorEncoder.h

class MotorEncoder {
    public:
        MotorEncoder(PinName a, PinName b);
        virtual ~MotorEncoder();
        void    reset();
        void    reset(short offset);
        short   read();
        operator short();
        
    private:
        TIM_TypeDef*    TIM;
};

#endif