2024-01-20 13:19:09 +08:00
|
|
|
#ifndef ENCODER_H
|
|
|
|
#define ENCODER_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "stm32f10x.h"
|
2024-01-24 22:08:32 +08:00
|
|
|
#include "stdint.h"
|
2024-01-20 13:19:09 +08:00
|
|
|
|
2024-01-24 22:08:32 +08:00
|
|
|
void Encoder_InitGPIO(TIM_TypeDef* TIMx , uint8_t GPIO_AF);
|
|
|
|
float Encoder_GetTIM5(void);
|
|
|
|
float Encoder_GetTIM4(void);
|
|
|
|
float Encoder_GetTIM3(void);
|
|
|
|
float Encoder_GetTIM2(void);
|
2024-01-20 13:19:09 +08:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // #ifndef ENCODER_H
|
|
|
|
|
|
|
|
|