matlab_23550/Inu/Src2/VectorControl/abc_to_dq.h
2024-12-27 10:50:32 +03:00

43 lines
777 B
C

#ifndef __ABC_DQ_H__
#define __ABC_DQ_H__
typedef struct { _iq Ia; //phase A voltage, input
_iq Ib; //phase B voltage, input
_iq Ic; //phase C voltage, input
_iq Tetta; //phase angle, input
_iq Id; // axis d voltage, output
_iq Iq; // axis q voltage, output
void (*calc)(); // Pointer to calculation function
void (*calc_v2)(); // Pointer to calculation function
}ABC_TO_DQ;
typedef ABC_TO_DQ *ABC_TO_DQ_handle;
#define ABC_TO_DQ_DEFAULTS { 0, \
0, \
0, \
0, \
0, \
0, \
(void (*)(_iq))abc_to_dq_calc, \
(void (*)(_iq))abc_to_dq_calc_v2 }
void abc_to_dq_calc(ABC_TO_DQ_handle);
void abc_to_dq_calc_v2(ABC_TO_DQ_handle);
#endif // end __ABC_DQ_H