Dependents:   serial_connected_mcu_nucleo rotary_encoder_mbed serial_connected_mcu_nucleo omuni_speed_pid ... more

Fork of rotary_encoder by tarou yamada

このライブラリは以下のプログラムに基いています https://developer.mbed.org/users/gregeric/code/Nucleo_Hello_Encoder/

Revision:
0:caf1d0bc4b90
Child:
2:4580c3869b7b
diff -r 000000000000 -r caf1d0bc4b90 rotary_encoder_base/rotary_encoder_base.hpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rotary_encoder_base/rotary_encoder_base.hpp	Sat Feb 06 14:24:56 2016 +0000
@@ -0,0 +1,23 @@
+#ifndef INCLUDED_ROTARY_ENCODER_BASE_H
+#define INCLUDED_ROTARY_ENCODER_BASE_H
+
+#include "rotary_encoder.hpp"
+
+class rotary_encoder_base : public rotary_encoder {
+public:
+    rotary_encoder_base(TIM_TypeDef* timer_type,
+                        uint32_t encoder_mode,
+                        size_t resolution);
+    virtual ~rotary_encoder_base() {}
+    
+    virtual int32_t get_counts() const;
+    
+    virtual void reset();
+    virtual void start();
+    virtual void stop();
+    
+protected:
+    TIM_HandleTypeDef* timer_handler_;
+};
+
+#endif