brazos-trapezoidal
Macros
API023MotorControl_prm.h File Reference

Header file for API023MotorControl_prm.h.c. More...

#include "calibrations.h"
#include "main.h"
#include "TrapSless.h"
#include "Feedbacks.h"
Include dependency graph for API023MotorControl_prm.h:
This graph shows which files directly or indirectly include this file:

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)
 

Detailed Description

Header file for API023MotorControl_prm.h.c.

Definition in file API023MotorControl_prm.h.

Macro Definition Documentation

◆ ALL_MOTORS

#define ALL_MOTORS   0xFF

Definition at line 25 of file API023MotorControl_prm.h.

◆ GET_BOARD_IBUS

#define GET_BOARD_IBUS ( )    IQ_TO_I(TrapSless__GetVars()->bus_curr*1000)

Definition at line 39 of file API023MotorControl_prm.h.

◆ GET_BOARD_IRMS

#define GET_BOARD_IRMS ( )    Feedbacks__GetVars()->IrmsIrmsPhase

Definition at line 42 of file API023MotorControl_prm.h.

◆ GET_BOARD_MOD_INDEX

#define GET_BOARD_MOD_INDEX ( )    Feedbacks__GetVars()->ModIdx

Definition at line 44 of file API023MotorControl_prm.h.

◆ GET_BOARD_RPM

#define GET_BOARD_RPM ( )    IQ_TO_RPM(TrapSless__GetVars()->speedRad)

Definition at line 40 of file API023MotorControl_prm.h.

◆ GET_BOARD_RPM_DIR

#define GET_BOARD_RPM_DIR ( )    TrapSless__GetVars()->dir

Definition at line 41 of file API023MotorControl_prm.h.

◆ GET_BOARD_VBUS

#define GET_BOARD_VBUS ( )    IQ_TO_V(TrapSless__GetVars()->bus_volt)

Definition at line 38 of file API023MotorControl_prm.h.

◆ GET_BOARD_VRMS

#define GET_BOARD_VRMS ( )    Feedbacks__GetVars()->VbusRms

Definition at line 43 of file API023MotorControl_prm.h.

◆ GET_CTRLDATA

#define GET_CTRLDATA (   dataenum,
  motorindex 
)

==================================================================================================================== MACROS definitions

Definition at line 37 of file API023MotorControl_prm.h.

◆ MAX_DATARATE

#define MAX_DATARATE   10000

Definition at line 24 of file API023MotorControl_prm.h.

◆ MAX_TARGET_ACCEL

#define MAX_TARGET_ACCEL   CAL_GET_REF_SPDMAX_RPM(0)*10

Definition at line 28 of file API023MotorControl_prm.h.

◆ MAX_TARGET_SPEED

#define MAX_TARGET_SPEED   CAL_GET_REF_SPDMAX_RPM(0)

Definition at line 26 of file API023MotorControl_prm.h.

◆ MIN_DATARATE

#define MIN_DATARATE   500

-----------------------------— Theta Power Systems - CONFIDENTIAL --------------------------------------—

Definition at line 23 of file API023MotorControl_prm.h.

◆ MIN_TARGET_ACCEL

#define MIN_TARGET_ACCEL   1

Definition at line 29 of file API023MotorControl_prm.h.

◆ MIN_TARGET_SPEED

#define MIN_TARGET_SPEED   CAL_GET_REF_SPDMIN_RPM(0)

Definition at line 27 of file API023MotorControl_prm.h.

◆ RUN_ALGO_RESMEAS

#define RUN_ALGO_RESMEAS (   motor,
  value 
)

Definition at line 49 of file API023MotorControl_prm.h.

◆ RUN_MOTOR

#define RUN_MOTOR (   motor,
  speed,
  accel 
)    main__Start_Motor(speed, accel)

Definition at line 47 of file API023MotorControl_prm.h.

◆ STOP_MOTOR

#define STOP_MOTOR (   motor,
  accel 
)    main__Stop_Motor()

Definition at line 48 of file API023MotorControl_prm.h.