![Logo](ti_logo.svg) |
AM263x Digital Power SDK
09.01.00
|
|
Go to the documentation of this file.
42 #ifndef SPLL_1PH_SOGI_H
43 #define SPLL_1PH_SOGI_H
77 #endif // IEEE754_TYPES
199 spll_obj->
delta_t=((1.0f)/isrFrequency);
215 spll_obj->
u[0]=acValue;
221 (spll_obj->
u[0]-spll_obj->
u[2])) +
237 spll_obj->
u[2]=spll_obj->
u[1];
238 spll_obj->
u[1]=spll_obj->
u[0];
251 spll_obj->
ylf[0]=spll_obj->
ylf[1] +
254 spll_obj->
ylf[1]=spll_obj->
ylf[0];
256 spll_obj->
u_Q[1]=spll_obj->
u_Q[0];
261 spll_obj->
fo=spll_obj->
fn+spll_obj->
ylf[0];
285 #endif // end of _SPLL_1PH_SOGI_H_ definition
float32_t theta
Angle output (0-2*pi)
Definition: spll_1ph_sogi.h:121
float32_t u[3]
AC input data buffer.
Definition: spll_1ph_sogi.h:113
float32_t osg_b2
Definition: spll_1ph_sogi.h:90
float float32_t
Definition: spll_1ph_sogi.h:75
float32_t sine
Sine value of the PLL angle.
Definition: spll_1ph_sogi.h:123
static void SPLL_1PH_SOGI_config(SPLL_1PH_SOGI *spll_obj, float32_t acFreq, float32_t isrFrequency, float32_t lpf_b0, float32_t lpf_b1)
Configures the SPLL_1PH_SOGI module.
Definition: spll_1ph_sogi.h:192
Defines the SPLL_1PH_SOGI_LPF_COEFF structure.
Definition: spll_1ph_sogi.h:100
float32_t osg_k
Definition: spll_1ph_sogi.h:86
float32_t osg_qb0
Definition: spll_1ph_sogi.h:93
float32_t cosine
Cosine value of the PLL angle.
Definition: spll_1ph_sogi.h:122
float32_t u_Q[2]
Q-axis component.
Definition: spll_1ph_sogi.h:116
float32_t osg_a1
Definition: spll_1ph_sogi.h:91
float32_t osg_u[3]
Orthogonal signal generator data buffer.
Definition: spll_1ph_sogi.h:114
static void SPLL_1PH_SOGI_reset(SPLL_1PH_SOGI *spll_obj)
Resets internal storage data of the module.
Definition: spll_1ph_sogi.h:132
float32_t u_D[2]
D-axis component.
Definition: spll_1ph_sogi.h:117
float32_t osg_b0
Definition: spll_1ph_sogi.h:89
float32_t b1
Definition: spll_1ph_sogi.h:101
static void SPLL_1PH_SOGI_run(SPLL_1PH_SOGI *spll_obj, float32_t acValue)
Run the SPLL_1PH_SOGI module.
Definition: spll_1ph_sogi.h:211
Defines the Orthogonal Signal Generator SPLL_1PH_SOGI structure.
Definition: spll_1ph_sogi.h:112
float32_t fo
Output frequency of PLL(Hz)
Definition: spll_1ph_sogi.h:119
Defines the SPLL_1PH_SOGI_OSG_COEFF structure.
Definition: spll_1ph_sogi.h:85
float32_t osg_a2
Definition: spll_1ph_sogi.h:92
float32_t b0
Definition: spll_1ph_sogi.h:102
float32_t fn
Nominal frequency (Hz)
Definition: spll_1ph_sogi.h:120
float32_t osg_x
Definition: spll_1ph_sogi.h:87
float32_t osg_y
Definition: spll_1ph_sogi.h:88
float32_t osg_qb2
Definition: spll_1ph_sogi.h:95
static void SPLL_1PH_SOGI_coeff_calc(SPLL_1PH_SOGI *spll_obj)
Calculates the SPLL_1PH_SOGI coefficient.
Definition: spll_1ph_sogi.h:166
float32_t osg_qu[3]
Orthogonal signal generator quadrature data buffer.
Definition: spll_1ph_sogi.h:115
SPLL_1PH_SOGI_OSG_COEFF osg_coeff
Orthogonal signal generator coefficient.
Definition: spll_1ph_sogi.h:125
float32_t osg_qb1
Definition: spll_1ph_sogi.h:94
SPLL_1PH_SOGI_LPF_COEFF lpf_coeff
Loop filter coeffcient structure.
Definition: spll_1ph_sogi.h:126
double float64_t
Definition: spll_1ph_sogi.h:76
float32_t ylf[2]
Loop filter data storage.
Definition: spll_1ph_sogi.h:118
float32_t delta_t
Inverse of the ISR rate at which module is called.
Definition: spll_1ph_sogi.h:124
float float32_t
Defines single,double precision data type. Note: Assumes ABI to be TI_EABI, does not support legacy T...
Definition: dcl_common.h:54