Dependents: serial_connected_mcu_nucleo rotary_encoder_mbed serial_connected_mcu_nucleo omuni_speed_pid ... more
Fork of rotary_encoder by
このライブラリは以下のプログラムに基いています https://developer.mbed.org/users/gregeric/code/Nucleo_Hello_Encoder/
rotary_encoder_base/rotary_encoder_base_impl.hpp
- Committer:
- inst
- Date:
- 2016-06-25
- Revision:
- 10:684e1604e5ea
- Parent:
- 9:d1e6284a13ab
File content as of revision 10:684e1604e5ea:
#ifndef INCLUDED_ROTARY_ENCODER_BASE_IMPL_H #define INCLUDED_ROTARY_ENCODER_BASE_IMPL_H #include "mbed.h" #include "rotary_encoder.hpp" class rotary_encoder_base_impl : public rotary_encoder { public: rotary_encoder_base_impl(TIM_TypeDef* timer_type, uint32_t encoder_mode, size_t resolution); virtual ~rotary_encoder_base_impl(); virtual int32_t get_counts() const; virtual void reset(); virtual void start(); virtual void stop(); protected: TIM_HandleTypeDef timer_handler_; }; #endif