| BLDC control on ATAVRMC303 with ATxMega128A1

mc_interface.h
Go to the documentation of this file.
1
11 //_____ I N C L U D E S ___________________________________________________
12
13 #ifndef _MC_LIB_H_
14 #define _MC_LIB_H_
15
16 extern Bool mci_direction;
17 extern Bool mci_run_stop;
18
19 void mci_run(void);
20 void mci_retry_run(void);
21 Bool mc_motor_is_running(void);
22 void mci_stop(void);
23 void mc_init(void);
24
25 void mci_set_motor_speed(U8 speed);
26 U8 mc_get_motor_speed(void);
27
28 void mci_forward(void);
29 void mci_backward(void);
30 U8 mc_get_motor_direction(void);
31
32 void mc_set_motor_measured_speed(U8 measured_speed);
33 U8 mci_get_measured_speed(void);
34
35 U16 mci_get_measured_current(void);
36 void mci_store_measured_current(U16 current);
37
38 U8 mc_get_potentiometer_value(void);
39 void mc_set_potentiometer_value(U8 potentiometer);
40
41 void mci_set_speed(U16 speed);
42 #endif
mci_backward
void mci_backward(void)
Definition: mc_interface.c:138
mci_retry_run
void mci_retry_run(void)
mci_retry_run retry to run if speed is null
Definition: mc_interface.c:55
mci_set_motor_speed
void mci_set_motor_speed(U8 speed)
Definition: mc_interface.c:108
mc_motor_is_running
Bool mc_motor_is_running(void)
get the motor state
Definition: mc_interface.c:70
mci_get_measured_current
U16 mci_get_measured_current(void)
Get the current measured in the motor.
Definition: mc_interface.c:179
mci_set_speed
void mci_set_speed(U16 speed)
Definition: mc_interface.c:214
mci_direction
Bool mci_direction
User Input parameter to set motor direction.
Definition: mc_interface.c:20
mci_stop
void mci_stop(void)
mci_stop stop the motor And reset the speed measured value.
Definition: mc_interface.c:81
mci_run_stop
Bool mci_run_stop
User Input parameter to launch or stop the motor.
Definition: mc_interface.c:21
mci_run
void mci_run(void)
mci_run run the motor with parameter
Definition: mc_interface.c:34
mc_set_motor_measured_speed
void mc_set_motor_measured_speed(U8 measured_speed)
set Measured of speed (for initialization)
Definition: mc_interface.c:158
mc_set_potentiometer_value
void mc_set_potentiometer_value(U8 potentiometer)
Set the &#39;mc_potentiometer_value&#39; variable with the potentiometer value.
Definition: mc_interface.c:209
mc_get_motor_direction
U8 mc_get_motor_direction(void)
Definition: mc_interface.c:148
mci_store_measured_current
void mci_store_measured_current(U16 current)
Set the variable &#39;mc_measured_current&#39; for initialization.
Definition: mc_interface.c:189
mc_init
void mc_init(void)
use to init programm
Definition: mc_interface.c:92
mci_forward
void mci_forward(void)
Definition: mc_interface.c:128
mci_get_measured_speed
U8 mci_get_measured_speed(void)
Measured of speed.
Definition: mc_interface.c:169
mc_get_motor_speed
U8 mc_get_motor_speed(void)
Definition: mc_interface.c:118
mc_get_potentiometer_value
U8 mc_get_potentiometer_value(void)
Get the potentiometer value.
Definition: mc_interface.c:199