void mc_switch_commutation(U8 position)
Set the Switching Commutation value on outputs according to sensor or estimation position.
U8 mc_measured_speed
Motor Input parameter to get the motor speed.
void mci_set_motor_speed(U8 speed)
void mci_set_speed(U16 speed)
U16 mci_get_measured_current(void)
Get the current measured in the motor.
U8 mc_get_motor_direction(void)
Bool mc_motor_is_running(void)
get the motor state
Bool mci_direction
User Input parameter to set motor direction.
void mci_retry_run(void)
mci_retry_run retry to run if speed is null
void mc_duty_cycle(U8 level)
Set the duty cycle values in the PSC according to the value calculate by the regulation loop...
void mci_stop(void)
mci_stop stop the motor And reset the speed measured value.
void mc_init()
use to init programm
void mci_run(void)
mci_run run the motor with parameter
U8 mc_potentiometer_value
Motor Input to set the motor speed.
Bool mci_run_stop
User Input parameter to launch or stop the motor.
U8 mc_get_hall(void)
Get the value of hall sensors (1 to 6)
void mc_set_potentiometer_value(U8 potentiometer)
Set the 'mc_potentiometer_value' variable with the potentiometer value.
void mci_store_measured_current(U16 current)
Set the variable 'mc_measured_current' for initialization.
void mc_set_motor_measured_speed(U8 measured_speed)
set Measured of speed (for initialization)
U8 mc_get_Duty_Cycle()
set type of regulation
void mc_disable_during_inrush(void)
the purpose of this function is to disable the overcurrent detection during startup (inrush current...
void mc_regulation_loop()
launch speed control or no regulation
U8 mci_get_measured_speed(void)
Measured of speed.
U32 mci_measured_current
Motor Input parameter to get the motor current.
void mc_init_HW(void)
init HW
U8 mc_get_motor_speed(void)
U8 mc_get_potentiometer_value(void)
Get the potentiometer value.
U8 mc_cmd_speed
User Input parameter to set motor speed.