motor_driver_params_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 167 of file motor_driver.h.

#include <motor_driver.h>

Data Fields

motor_driver_mode_t mode
 driver mode
 
pwm_t pwm_dev
 PWM device driving motors.
 
pwm_mode_t pwm_mode
 PWM mode.
 
uint32_t pwm_frequency
 PWM device frequency.
 
uint32_t pwm_resolution
 PWM device resolution.
 
bool brake_inverted
 if false, brake high (1), low (0) otherwise
 
bool enable_inverted
 if false, enable high (1), low (0) otherwise
 
uint8_t nb_motors
 number of motors
 
motor_t motors [CONFIG_MOTOR_DRIVER_MAX]
 motors array
 
motor_set_post_cb_t motor_set_post_cb
 callback post to motor_set
 

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