Totale Testversion
Dependencies: mbed
Fork of DrehungMitStopp by
MotorEncoder.h
- Committer:
- freunjor
- Date:
- 2017-05-21
- Revision:
- 5:24350e6fc9d7
- Parent:
- 1:d40ff07e2fe0
File content as of revision 5:24350e6fc9d7:
#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