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.hpp
- Committer:
- inst
- Date:
- 2016-04-03
- Revision:
- 4:d07f58c46a79
- Parent:
- 2:4580c3869b7b
- Child:
- 7:3b51e2c660b6
File content as of revision 4:d07f58c46a79:
#ifndef INCLUDED_MBED_STL_ROTARY_ENCODER_H #define INCLUDED_MBED_STL_ROTARY_ENCODER_H #include <stdint.h> #include <stddef.h> namespace mbed_stl { class rotary_encoder { public: rotary_encoder(size_t resolution); virtual ~rotary_encoder() = 0; virtual int32_t get_counts() const = 0; float get_revol_num() const; virtual void reset() = 0; virtual void start() = 0; virtual void stop() = 0; protected: static const size_t max_counts_; const size_t resolution_; }; } /* namespace mbed_stl */ #endif