Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: serial_connected_mcu_nucleo rotary_encoder_mbed serial_connected_mcu_nucleo omuni_speed_pid ... more
Fork of rotary_encoder by
rotary_encoder_a_phase.hpp
- Committer:
- inst
- Date:
- 2016-06-25
- Revision:
- 10:684e1604e5ea
- Parent:
- 9:d1e6284a13ab
File content as of revision 10:684e1604e5ea:
#ifndef INCLUDED_ROTARY_ENCODER_A_PHASE_H
#define INCLUDED_ROTARY_ENCODER_A_PHASE_H
#include "rotary_encoder_base.hpp"
class rotary_encoder_a_phase : public rotary_encoder_base {
public:
rotary_encoder_a_phase(TIM_TypeDef* timer_type, size_t pulse_per_revol) : // A相での分解能はパルス数の倍
rotary_encoder_base(timer_type, TIM_ENCODERMODE_TI1, pulse_per_revol << 1) {}
virtual ~rotary_encoder_a_phase() {}
};
#endif
