|
brazos-trapezoidal
|
Header file for API023MotorControl_prm.h.c. More...


Go to the source code of this file.
Macros | |
| #define | MIN_DATARATE 500 |
| #define | MAX_DATARATE 10000 |
| #define | ALL_MOTORS 0xFF |
| #define | MAX_TARGET_SPEED CAL_GET_REF_SPDMAX_RPM(0) |
| #define | MIN_TARGET_SPEED CAL_GET_REF_SPDMIN_RPM(0) |
| #define | MAX_TARGET_ACCEL CAL_GET_REF_SPDMAX_RPM(0)*10 |
| #define | MIN_TARGET_ACCEL 1 |
| #define | GET_CTRLDATA(dataenum, motorindex) |
| #define | GET_BOARD_VBUS() IQ_TO_V(TrapSless__GetVars()->bus_volt) |
| #define | GET_BOARD_IBUS() IQ_TO_I(TrapSless__GetVars()->bus_curr*1000) |
| #define | GET_BOARD_RPM() IQ_TO_RPM(TrapSless__GetVars()->speedRad) |
| #define | GET_BOARD_RPM_DIR() TrapSless__GetVars()->dir |
| #define | GET_BOARD_IRMS() Feedbacks__GetVars()->IrmsIrmsPhase |
| #define | GET_BOARD_VRMS() Feedbacks__GetVars()->VbusRms |
| #define | GET_BOARD_MOD_INDEX() Feedbacks__GetVars()->ModIdx |
| #define | RUN_MOTOR(motor, speed, accel) main__Start_Motor(speed, accel) |
| #define | STOP_MOTOR(motor, accel) main__Stop_Motor() |
| #define | RUN_ALGO_RESMEAS(motor, value) |
Header file for API023MotorControl_prm.h.c.
Definition in file API023MotorControl_prm.h.
| #define ALL_MOTORS 0xFF |
Definition at line 25 of file API023MotorControl_prm.h.
| #define GET_BOARD_IBUS | ( | ) | IQ_TO_I(TrapSless__GetVars()->bus_curr*1000) |
Definition at line 39 of file API023MotorControl_prm.h.
| #define GET_BOARD_IRMS | ( | ) | Feedbacks__GetVars()->IrmsIrmsPhase |
Definition at line 42 of file API023MotorControl_prm.h.
| #define GET_BOARD_MOD_INDEX | ( | ) | Feedbacks__GetVars()->ModIdx |
Definition at line 44 of file API023MotorControl_prm.h.
| #define GET_BOARD_RPM | ( | ) | IQ_TO_RPM(TrapSless__GetVars()->speedRad) |
Definition at line 40 of file API023MotorControl_prm.h.
| #define GET_BOARD_RPM_DIR | ( | ) | TrapSless__GetVars()->dir |
Definition at line 41 of file API023MotorControl_prm.h.
| #define GET_BOARD_VBUS | ( | ) | IQ_TO_V(TrapSless__GetVars()->bus_volt) |
Definition at line 38 of file API023MotorControl_prm.h.
| #define GET_BOARD_VRMS | ( | ) | Feedbacks__GetVars()->VbusRms |
Definition at line 43 of file API023MotorControl_prm.h.
| #define GET_CTRLDATA | ( | dataenum, | |
| motorindex | |||
| ) |
==================================================================================================================== MACROS definitions
Definition at line 37 of file API023MotorControl_prm.h.
| #define MAX_DATARATE 10000 |
Definition at line 24 of file API023MotorControl_prm.h.
| #define MAX_TARGET_ACCEL CAL_GET_REF_SPDMAX_RPM(0)*10 |
Definition at line 28 of file API023MotorControl_prm.h.
| #define MAX_TARGET_SPEED CAL_GET_REF_SPDMAX_RPM(0) |
Definition at line 26 of file API023MotorControl_prm.h.
| #define MIN_DATARATE 500 |
Definition at line 23 of file API023MotorControl_prm.h.
| #define MIN_TARGET_ACCEL 1 |
Definition at line 29 of file API023MotorControl_prm.h.
| #define MIN_TARGET_SPEED CAL_GET_REF_SPDMIN_RPM(0) |
Definition at line 27 of file API023MotorControl_prm.h.
| #define RUN_ALGO_RESMEAS | ( | motor, | |
| value | |||
| ) |
Definition at line 49 of file API023MotorControl_prm.h.
| #define RUN_MOTOR | ( | motor, | |
| speed, | |||
| accel | |||
| ) | main__Start_Motor(speed, accel) |
Definition at line 47 of file API023MotorControl_prm.h.
| #define STOP_MOTOR | ( | motor, | |
| accel | |||
| ) | main__Stop_Motor() |
Definition at line 48 of file API023MotorControl_prm.h.