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

#include <control_interrupts.h>

Data Fields

uint16_t qiL
 
int16_t qiL_k
 
uint32_t qiL_offset_acc
 
uint16_t qiL_offset_count
 
uint16_t qiL_offset
 
comp_BW_t bandwitdh
 
bool iL_offset_en
 
bool iL_offset_done
 
int16_t qiL_int
 
uint16_t qVbus_DC
 
uint16_t qVbus_DC_send
 
int32_t qVbus_DC_filt
 
bool qVbus_DC_OK
 
uint16_t qVin_AC
 
int16_t qVin_AC_Diff
 
uint16_t qVin_BOP
 
uint32_t qVin_inv2
 
uint16_t qVin_inv2_16b
 
uint16_t qTemp
 
uint16_t qTemp_amb
 
uint16_t qTemp_send
 
uint16_t store_params
 
op_mode_t pfc_inv_mode
 
uint16_t inv_power_ref
 
uint16_t inv_power
 

Detailed Description

Structure for the PFC related variables

Field Documentation

◆ bandwitdh

comp_BW_t PFC_var::bandwitdh

BW applied according to current level.

◆ iL_offset_done

bool PFC_var::iL_offset_done

Allows inductor current zero calculation only after controller reset.

◆ iL_offset_en

bool PFC_var::iL_offset_en

Inductor current zero calculation enable.

◆ inv_power

uint16_t PFC_var::inv_power

Actual power to be delivered in inverter mode.

◆ inv_power_ref

uint16_t PFC_var::inv_power_ref

Target power to be delivered in inverter mode.

◆ pfc_inv_mode

op_mode_t PFC_var::pfc_inv_mode

Holds the operation mode: 0–>PFC, 1–>Inverter.

◆ qiL

uint16_t PFC_var::qiL

Inductor current value read from the ADC. Q15 format.

◆ qiL_int

int16_t PFC_var::qiL_int

Intermediate value for the inductor current processing.

◆ qiL_k

int16_t PFC_var::qiL_k

Inductor current value after modification to be used in the current loop calculation. Q15 format.

◆ qiL_offset

uint16_t PFC_var::qiL_offset

Inductor current calculated zero. Q15 format

◆ qiL_offset_acc

uint32_t PFC_var::qiL_offset_acc

Inductor current accumulation for zero current calculation. Q15 format.

◆ qiL_offset_count

uint16_t PFC_var::qiL_offset_count

Inductor current accumulation count for zero current calculation.

◆ qTemp

uint16_t PFC_var::qTemp

Temperature sensing in power board.

◆ qTemp_amb

uint16_t PFC_var::qTemp_amb

Temperature sensing in TSE of XMC.

◆ qTemp_send

uint16_t PFC_var::qTemp_send

Temperature information of NTC and ambient measurements to be sent to secondary side.

◆ qVbus_DC

uint16_t PFC_var::qVbus_DC

Output Voltage DC value.

◆ qVbus_DC_filt

int32_t PFC_var::qVbus_DC_filt

Filtered output Voltage DC value.

◆ qVbus_DC_OK

bool PFC_var::qVbus_DC_OK

Output Voltage DC value is in range to start in inverter mode.

◆ qVbus_DC_send

uint16_t PFC_var::qVbus_DC_send

Output Voltage DC value to be sent to secondary side controller.

◆ qVin_AC

uint16_t PFC_var::qVin_AC

Input Voltage AC value. 'k' and 'k-1' values.

◆ qVin_AC_Diff

int16_t PFC_var::qVin_AC_Diff

Difference between 'k' and 'k-1' AC values. NOT USED.

◆ qVin_BOP

uint16_t PFC_var::qVin_BOP

Input Voltage AVG value. Used as RMS (proportional).

◆ qVin_inv2

uint32_t PFC_var::qVin_inv2

Inverse of the input voltage RMS square in 32-bit Q31 codification.

◆ qVin_inv2_16b

uint16_t PFC_var::qVin_inv2_16b

Inverse of the input voltage RMS square in 16-bit Q15 codification.

◆ store_params

uint16_t PFC_var::store_params

Storage of parameters requested by the GUI.


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