motor_driver_config_t Struct Reference

Describe DC motor driver with PWM device and motors array. More...

Detailed Description

Describe DC motor driver with PWM device and motors array.

Definition at line 162 of file motor_driver.h.

#include <motor_driver.h>

Data Fields

pwm_t pwm_dev
 PWM device driving motors.
 
motor_driver_mode_t mode
 driver mode
 
motor_driver_mode_brake_t mode_brake
 driver brake mode
 
pwm_mode_t pwm_mode
 PWM mode.
 
uint32_t pwm_frequency
 PWM device frequency.
 
uint32_t pwm_resolution
 PWM device resolution.
 
uint8_t nb_motors
 number of moros
 
motor_t motors [MOTOR_DRIVER_MAX]
 motors array
 
motor_driver_cb_t cb
 callback on motor_set
 

The documentation for this struct was generated from the following file: