Dependents:   serial_connected_mcu_nucleo rotary_encoder_mbed serial_connected_mcu_nucleo omuni_speed_pid ... more

Fork of rotary_encoder by tarou yamada

このライブラリは以下のプログラムに基いています https://developer.mbed.org/users/gregeric/code/Nucleo_Hello_Encoder/

Committer:
inst
Date:
Fri Feb 26 16:08:52 2016 +0000
Revision:
2:4580c3869b7b
Parent:
1:0b315dd1bbbf
Child:
7:3b51e2c660b6
add servo and PID

Who changed what in which revision?

UserRevisionLine numberNew contents of line
inst 2:4580c3869b7b 1 #ifndef INCLUDED_MBED_STL_ROTARY_ENCODER_AB_PHASE_H
inst 2:4580c3869b7b 2 #define INCLUDED_MBED_STL_ROTARY_ENCODER_AB_PHASE_H
inst 0:caf1d0bc4b90 3
inst 0:caf1d0bc4b90 4 #include "rotary_encoder_base.hpp"
inst 0:caf1d0bc4b90 5 #include "mbed.h"
inst 0:caf1d0bc4b90 6
inst 0:caf1d0bc4b90 7 /*
inst 0:caf1d0bc4b90 8 * TIM1_CH1: AF1 @ PA_8
inst 0:caf1d0bc4b90 9 * TIM1_CH2: AF1 @ PA_9
inst 0:caf1d0bc4b90 10 *
inst 0:caf1d0bc4b90 11 * TIM2_CH1: AF1 @ PA_0
inst 0:caf1d0bc4b90 12 * TIM2_CH2: AF1 @ PA_1
inst 0:caf1d0bc4b90 13 *
inst 0:caf1d0bc4b90 14 * TIM3_CH1: AF2 @ PB_4
inst 0:caf1d0bc4b90 15 * TIM3_CH2: AF2 @ PB_5
inst 0:caf1d0bc4b90 16 *
inst 0:caf1d0bc4b90 17 * TIM4_CH1: AF2 @ PB_6, PD_12
inst 0:caf1d0bc4b90 18 * TIM4_CH2: AF2 @ PB_7, PD_13
inst 0:caf1d0bc4b90 19 *
inst 0:caf1d0bc4b90 20 * TIM5_CH1: AF2 @ PA_0* *TIM5 used by mbed system ticker so unavailable
inst 0:caf1d0bc4b90 21 * TIM5_CH2: AF2 @ PA_1*
inst 0:caf1d0bc4b90 22 *
inst 0:caf1d0bc4b90 23 */
inst 2:4580c3869b7b 24
inst 2:4580c3869b7b 25 namespace mbed_stl {
inst 0:caf1d0bc4b90 26
inst 0:caf1d0bc4b90 27 class rotary_encoder_ab_phase : public rotary_encoder_base {
inst 0:caf1d0bc4b90 28 public:
inst 0:caf1d0bc4b90 29 rotary_encoder_ab_phase(TIM_TypeDef* timer_type, size_t resolution) :
inst 0:caf1d0bc4b90 30 rotary_encoder_base(timer_type, TIM_ENCODERMODE_TI12, resolution) {}
inst 0:caf1d0bc4b90 31 virtual ~rotary_encoder_ab_phase() {}
inst 0:caf1d0bc4b90 32 };
inst 0:caf1d0bc4b90 33
inst 2:4580c3869b7b 34 } /* namespace mbed_stl */
inst 2:4580c3869b7b 35
inst 0:caf1d0bc4b90 36 #endif