https://controllerstech.com/input-capture-in-stm32/inputcap_6/>