Stm32 encoder inputs. The Index signal must be connected to the TIMx_ETR input.