HPM SDK
HPMicro Software Development Kit
hpm_motor_math.c File Reference
#include "hpm_motor_math.h"
#include "hpm_math.h"

Functions

HPM_MOTOR_MATH_TYPE hpm_dsp_hw_f32_q (float from_f32)
 Floating point to Q format conversion. More...
 
float hpm_dsp_hw_q_f32 (HPM_MOTOR_MATH_TYPE from_mdf)
 Q format to floating point conversion. More...
 
HPM_MOTOR_MATH_TYPE hpm_dsp_hw_mul_q (HPM_MOTOR_MATH_TYPE x, HPM_MOTOR_MATH_TYPE y)
 Q-format multiplication. More...
 
HPM_MOTOR_MATH_TYPE hpm_dsp_hw_div_q (HPM_MOTOR_MATH_TYPE x, HPM_MOTOR_MATH_TYPE y)
 Q-format division. More...
 
HPM_MOTOR_MATH_TYPE hpm_dsp_hw_atan_q (HPM_MOTOR_MATH_TYPE x)
 Q-format atan. More...
 
HPM_MOTOR_MATH_TYPE hpm_dsp_hw_atan2_q (HPM_MOTOR_MATH_TYPE x, HPM_MOTOR_MATH_TYPE y)
 Q-format atan2. More...
 
HPM_MOTOR_MATH_TYPE hpm_dsp_hw_abs_q (HPM_MOTOR_MATH_TYPE x)
 Q-format absolute. More...