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_a_phase.hpp@9:d1e6284a13ab, 2016-05-21 (annotated)
- Committer:
- inst
- Date:
- Sat May 21 03:19:33 2016 +0000
- Revision:
- 9:d1e6284a13ab
- Parent:
- 7:3b51e2c660b6
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
inst | 7:3b51e2c660b6 | 1 | #ifndef INCLUDED_ROTARY_ENCODER_A_PHASE_H |
inst | 7:3b51e2c660b6 | 2 | #define INCLUDED_ROTARY_ENCODER_A_PHASE_H |
inst | 0:caf1d0bc4b90 | 3 | |
inst | 0:caf1d0bc4b90 | 4 | #include "rotary_encoder_base.hpp" |
inst | 0:caf1d0bc4b90 | 5 | |
inst | 0:caf1d0bc4b90 | 6 | class rotary_encoder_a_phase : public rotary_encoder_base { |
inst | 0:caf1d0bc4b90 | 7 | public: |
inst | 7:3b51e2c660b6 | 8 | rotary_encoder_a_phase(TIM_TypeDef* timer_type, size_t pulse_per_revol) : // A相での分解能はパルス数の倍 |
inst | 7:3b51e2c660b6 | 9 | rotary_encoder_base(timer_type, TIM_ENCODERMODE_TI1, pulse_per_revol << 1) {} |
inst | 0:caf1d0bc4b90 | 10 | virtual ~rotary_encoder_a_phase() {} |
inst | 0:caf1d0bc4b90 | 11 | }; |
inst | 0:caf1d0bc4b90 | 12 | |
inst | 0:caf1d0bc4b90 | 13 | #endif |