
Example project
Dependencies: PM2_Libary Eigen
Diff: EncoderCounterROME2.h
- Revision:
- 42:d2d2db5974c9
- Parent:
- 41:7484471403aa
- Child:
- 43:0a124a21e227
--- a/EncoderCounterROME2.h Wed May 11 09:44:25 2022 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ -/* - * EncoderCounterROME2.h - * Copyright (c) 2022, ZHAW - * All rights reserved. - */ - -#ifndef ENCODER_COUNTER_ROME2_H_ -#define ENCODER_COUNTER_ROME2_H_ - -#include <cstdlib> -#include <mbed.h> - -/** - * This class implements a driver to read the quadrature - * encoder counter of the STM32 microcontroller. - */ -class EncoderCounterROME2 { - - public: - - EncoderCounterROME2(PinName a, PinName b); - virtual ~EncoderCounterROME2(); - void reset(); - void reset(short offset); - short read(); - operator short(); - - private: - - TIM_TypeDef* TIM; -}; - -#endif /* ENCODER_COUNTER_ROME2_H_ */