#include <utils.h>
#include <brushless_3phase_digital_hall_config.h>
Go to the source code of this file.
Data Structures | |
struct | brushless |
Functions | |
void | brushless_init (void) |
void | brushless_0_set_parameters (brushless_speed speed, brushless_torque torque) |
brushless | brushless_0_get_mesures (void) |
void | brushless_0_set_position (brushless_position p) |
void | brushless_0_register_periodic_event (void(*f)(brushless)) |
int32_t | brushless_get_speed (void *) |
int32_t | brushless_get_pos (void *) |
void | brushless_set_torque (void *, int32_t torque) |
void | brushless_set_speed (void *, int32_t speed) |
brushless brushless_0_get_mesures | ( | void | ) |
calculates the speed update info. To be called externally only if not internally, ie if the BRUSHLESS_MANAGE_EXTERNAL is set get current speed and position This function is very useful to get synchronous speed and torque info
Definition at line 475 of file brushless.c.
void brushless_0_register_periodic_event | ( | void(*)(brushless) | f | ) |
registers an event function that triggers periodically, and synchronously with the speed measurement
Definition at line 500 of file brushless.c.
void brushless_0_set_parameters | ( | brushless_speed | speed, | |
brushless_torque | torque | |||
) |
sets a consign speed and torque if you do not use the speed coarse limitation, please configure with BRUSHLESS_MAX_SPEED
Definition at line 438 of file brushless.c.
void brushless_0_set_position | ( | brushless_position | p | ) |
sets the position counter
Definition at line 489 of file brushless.c.
int32_t brushless_get_pos | ( | void * | motor_num | ) |
get position function, compatible with control_system. argument is unused but should be 0 for compatibility
get position function, compatible with control_system. Argument not used.
Definition at line 524 of file brushless.c.
int32_t brushless_get_speed | ( | void * | motor_num | ) |
acess functions for the control system interface get speed function, compatible with control_system. argument is unused but should be 0 for compatibility
acess functions for the control system interface get speed function, compatible with control_system. Argument not used.
Definition at line 514 of file brushless.c.
void brushless_init | ( | void | ) |
initialisation, also executes pwm_init
Definition at line 417 of file brushless.c.
void brushless_set_speed | ( | void * | motor_num, | |
int32_t | speed | |||
) |
set speed function, compatible with control_system. argument is unused but should be 0 for compatibility
set speed function, compatible with control_system. first argument not used.
Definition at line 540 of file brushless.c.
void brushless_set_torque | ( | void * | motor_num, | |
int32_t | torque | |||
) |
set torque function, compatible with control_system. argument is unused but should be 0 for compatibility
set torque function, compatible with control_system. first argument not used.
Definition at line 534 of file brushless.c.