libyggdrasil  v1.0.0
motor_driver.h
Go to the documentation of this file.
1  /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2  * _____.___. .___ .__.__ *
3  * \__ | | ____ ____ __| _/___________ _____|__| | *
4  * / | |/ ___\ / ___\ / __ |\_ __ \__ \ / ___/ | | *
5  * \____ / /_/ > /_/ > /_/ | | | \// __ \_\___ \| | |__ *
6  * / ______\___ /\___ /\____ | |__| (____ /____ >__|____/ *
7  * \/ /_____//_____/ \/ \/ \/ *
8  * - Yggdrasil - *
9  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
10  * This software can be used by students and other personal of the *
11  * Bern University of Applied Sciences under the terms of the MIT *
12  * license. *
13  * For other persons this software is under the terms of the GNU *
14  * General Public License version 2. *
15  * *
16  * Copyright © 2021, Bern University of Applied Sciences. *
17  * All rights reserved. *
18  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
26 #pragma once
27 
28 #include <c/yggdrasil/types.h>
29 
36 };
44 
51 
59 
66 
67 
yggdrasil_MotorDriver_Standby
C_LINKAGE void yggdrasil_MotorDriver_Standby(bool stby)
set the motor driver to standby
yggdrasil_MotorDriver_GetError
C_LINKAGE bool yggdrasil_MotorDriver_GetError(void)
get the Status from the motor driver
MotorDriverChannel_B
@ MotorDriverChannel_B
Channel B.
Definition: motor_driver.h:35
types.h
MotorDriverChannel_A
@ MotorDriverChannel_A
Channel A.
Definition: motor_driver.h:34
C_LINKAGE
#define C_LINKAGE
Definition: attributes.h:43
yggdrasil_MotorDriver_SetSpeed
C_LINKAGE void yggdrasil_MotorDriver_SetSpeed(enum MotorDriverChannel channel, float speed)
Controls the speed and rotation of each channel.
MotorDriverChannel
MotorDriverChannel
Motor driver Channels.
Definition: motor_driver.h:33
yggdrasil_MotorDriver_Init
C_LINKAGE void yggdrasil_MotorDriver_Init(void)
init function for the motor as a dual channel dc driver