libyggdrasil
v1.0.0
|
Driver to use the TC78H660FTG DC motor driver. More...
#include <c/yggdrasil/types.h>
Go to the source code of this file.
Enumerations | |
enum | MotorDriverChannel { MotorDriverChannel_A = 0, MotorDriverChannel_B = 1 } |
Motor driver Channels. More... | |
Functions | |
C_LINKAGE void | yggdrasil_MotorDriver_Init (void) |
init function for the motor as a dual channel dc driver More... | |
C_LINKAGE void | yggdrasil_MotorDriver_Standby (bool stby) |
set the motor driver to standby More... | |
C_LINKAGE void | yggdrasil_MotorDriver_SetSpeed (enum MotorDriverChannel channel, float speed) |
Controls the speed and rotation of each channel. More... | |
C_LINKAGE bool | yggdrasil_MotorDriver_GetError (void) |
get the Status from the motor driver More... | |
Driver to use the TC78H660FTG DC motor driver.
enum MotorDriverChannel |
C_LINKAGE bool yggdrasil_MotorDriver_GetError | ( | void | ) |
get the Status from the motor driver
C_LINKAGE void yggdrasil_MotorDriver_Init | ( | void | ) |
init function for the motor as a dual channel dc driver
C_LINKAGE void yggdrasil_MotorDriver_SetSpeed | ( | enum MotorDriverChannel | channel, |
float | speed | ||
) |
Controls the speed and rotation of each channel.
channel | Channel to set speed |
speed | Speed from -100% o 100% where - does change the rotation direction |
C_LINKAGE void yggdrasil_MotorDriver_Standby | ( | bool | stby | ) |
set the motor driver to standby
stby | True for standby, false for active |