Describe DC motor with PWM channel and GPIOs. More...
Describe DC motor with PWM channel and GPIOs.
Definition at line 143 of file motor_driver.h.
#include <motor_driver.h>
Data Fields | |
int | pwm_channel |
PWM channel the motor is connected to. | |
gpio_t | gpio_enable |
GPIO to enable/disable motor. | |
gpio_t | gpio_dir0 |
GPIO to control rotation direction. | |
gpio_t | gpio_dir1_or_brake |
GPIO to control rotation direction. | |
uint8_t | gpio_dir_reverse |
flag to reverse direction | |
uint8_t | gpio_enable_invert |
flag to set enable GPIO inverted mode | |
uint8_t | gpio_brake_invert |
flag to make brake active low | |