17 GPIO_TypeDef *GPIO_Port_step;
18 uint16_t GPIO_Pin_step;
19 GPIO_TypeDef *GPIO_Port_dir;
20 uint16_t GPIO_Pin_dir;
22 uint32_t GetStepsFromDegrees(
float degrees);
23 uint32_t GetStepsFromRadian(
float radian);
24 float GetDegreesFromSteps(int32_t steps);
25 float GetRadianFromSteps(int32_t steps);
31 Stepper(GPIO_TypeDef *GPIO_Port_step, uint16_t GPIO_Pin_step, GPIO_TypeDef *GPIO_Port_dir, uint16_t GPIO_Pin_dir, uint16_t Resolution);
34 void RotateSteps(uint32_t steps,
bool dir,
float speed);