13#ifndef INC_CYTRONDRIVER_H_
14#define INC_CYTRONDRIVER_H_
35 TIM_HandleTypeDef *timer;
38 uint32_t working_channel;
void Cytron_Set_Motor_Speed(driver_struct *driver, uint16_t speed)
Ustawia prędkość obrotów silnika.
Definition cytronDriver.c:36
void Cytron_Set_Motor_Direction(driver_struct *driver, Cytron_Direction direction)
Ustawia kierunek obrotów silnika.
Definition cytronDriver.c:19
void Cytron_Motor_Init(driver_struct *driver, TIM_HandleTypeDef *PWM_timer)
Inicjalizuje sterownik silnika z początkową prędkością 0 i domyślnym kierunkiem.
Definition cytronDriver.c:50
Cytron_Direction
Enum określający kierunek obrotów silnika.
Definition cytronDriver.h:23
Struktura reprezentująca sterownik silnika DC.
Definition cytronDriver.h:34