3.3kW Totem-pole PFC with CoolMOS and XMC1402
controller_PI Struct Reference

#include <init_bckgnd_funct.h>

Data Fields

int32_t a0
 
int32_t a1
 
int32_t a2
 
int32_t aux
 
uint8_t shift_to_q13
 
uint8_t shift_to_q29
 
int32_t state_output [3]
 
int16_t * duty_iL
 
int32_t ratio_FF
 
int16_t duty
 
int32_t state_error [3]
 
int16_t max_duty
 
int16_t min_duty
 
uint16_t PI_ref
 
uint32_t PI_ref_int
 
uint16_t PI_ref_max
 
int16_t PR_calc
 

Detailed Description

Controller structure for current loop

Field Documentation

◆ a0

int32_t controller_PI::a0

PI 'k' error coefficient. Q14 format.

◆ a1

int32_t controller_PI::a1

PI 'k-1' error coefficient. Q14 format.

◆ a2

int32_t controller_PI::a2

PI 'k-2' error coefficient. Q14 format.

◆ aux

int32_t controller_PI::aux

Auxiliary variable for coefficient calculation. Q14 format.

◆ duty

int16_t controller_PI::duty

Duty cycle to be applied: ratio_FF+duty_iL.

◆ duty_iL

int16_t* controller_PI::duty_iL

Duty cycle information obtained from the state_output vector of the current loop

◆ max_duty

int16_t controller_PI::max_duty

Maximum allowed duty cycle.

◆ min_duty

int16_t controller_PI::min_duty

Minimum allowed duty cycle.

◆ PI_ref

uint16_t controller_PI::PI_ref

Current reference value. Q15 format

◆ PI_ref_int

uint32_t controller_PI::PI_ref_int

Intermediate current reference calculation.

◆ PI_ref_max

uint16_t controller_PI::PI_ref_max

Maximum allowed current reference value. Q15 format

◆ PR_calc

int16_t controller_PI::PR_calc

Applied switching frequency

◆ ratio_FF

int32_t controller_PI::ratio_FF

Ratio Vac/Vdc for DFF calculation. Vdc assumed constant in inverter operation.

◆ shift_to_q13

uint8_t controller_PI::shift_to_q13

Applicable shift to obtain Q13 output

◆ shift_to_q29

uint8_t controller_PI::shift_to_q29

Applicable shift to obtain Q29 intermediate value

◆ state_error

int32_t controller_PI::state_error[3]

Previous ('k'), ('k-1') and ('k-2') errors. Q15 format.

◆ state_output

int32_t controller_PI::state_output[3]

Previous ('k'), ('k-1') and ('k-2') outputs. Q15 format.


The documentation for this struct was generated from the following file: