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.
rotary_encoder_ab_phase.hpp
- Committer:
- inst
- Date:
- 2016-02-06
- Revision:
- 0:caf1d0bc4b90
- Child:
- 1:0b315dd1bbbf
File content as of revision 0:caf1d0bc4b90:
#ifndef INCLUDED_ROTARY_ENCODER_A_PHASE_H #define INCLUDED_ROTARY_ENCODER_A_PHASE_H #include "rotary_encoder_base.hpp" #include "mbed.h" /* * TIM1_CH1: AF1 @ PA_8 * TIM1_CH2: AF1 @ PA_9 * * TIM2_CH1: AF1 @ PA_0 * TIM2_CH2: AF1 @ PA_1 * * TIM3_CH1: AF2 @ PB_4 * TIM3_CH2: AF2 @ PB_5 * * TIM4_CH1: AF2 @ PB_6, PD_12 * TIM4_CH2: AF2 @ PB_7, PD_13 * * TIM5_CH1: AF2 @ PA_0* *TIM5 used by mbed system ticker so unavailable * TIM5_CH2: AF2 @ PA_1* * */ class rotary_encoder_ab_phase : public rotary_encoder_base { public: rotary_encoder_ab_phase(TIM_TypeDef* timer_type, size_t resolution) : rotary_encoder_base(timer_type, TIM_ENCODERMODE_TI12, resolution) {} virtual ~rotary_encoder_ab_phase() {} }; #endif