Dual DC Motor driver driver TC78H660FTG.
More...
#include <motor_driver.hpp>
|
static bool | init () |
| init function for the motor as a dual channel dc driver More...
|
|
static void | standby (bool stby) |
| set the motor driver to standby More...
|
|
static void | setSpeed (Channel ch, float speed) |
| Controls the speed and rotation of each channel. More...
|
|
static bool | getError () |
| get the Status from the motor driver More...
|
|
Dual DC Motor driver driver TC78H660FTG.
◆ Channel
Channels.
Enumerator |
---|
A | Channel A.
|
B | Channel B.
|
◆ MotorDriver()
bsp::ygg::prph::MotorDriver::MotorDriver |
( |
| ) |
|
|
delete |
◆ getError()
static bool bsp::ygg::prph::MotorDriver::getError |
( |
| ) |
|
|
inlinestatic |
get the Status from the motor driver
- Returns
- false when no error occurring, true when in thermal shutdown (TSD) or over current (ISD)
◆ init()
static bool bsp::ygg::prph::MotorDriver::init |
( |
| ) |
|
|
inlinestatic |
init function for the motor as a dual channel dc driver
- Note
- this function does start the needed pwm generators
- Returns
- Success
◆ setSpeed()
static void bsp::ygg::prph::MotorDriver::setSpeed |
( |
Channel |
ch, |
|
|
float |
speed |
|
) |
| |
|
inlinestatic |
Controls the speed and rotation of each channel.
- Parameters
-
ch | Channel to set speed |
speed | Speed from -100% o 100% where - does change the rotation direction |
◆ standby()
static void bsp::ygg::prph::MotorDriver::standby |
( |
bool |
stby | ) |
|
|
inlinestatic |
set the motor driver to standby
- Parameters
-
stby | True for standby, false for active |
The documentation for this class was generated from the following file: