XMC42_800WPSU_LLC
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
controller_t Struct Reference

#include <interrupts_control.h>

Data Fields

int16_t a [3]
 
int16_t b [3]
 
uint8_t qformat
 
uint8_t shift_to_q15
 
int16_t error [3]
 
int32_t state [3]
 
int32_t int_calc
 
int32_t output_int
 
int16_t * output_int_limit
 
int16_t soft_start
 
int16_t * output
 
int16_t output_max
 
uint16_t int_ref
 
uint16_t int_ref_steady
 
bool first_iter
 
ramp_loop_mode_t ramp_loop
 
float fIn_peak [3]
 
float fOut_peak [3]
 
int16_t qOut_peak
 

Detailed Description

Controller with integral part

Definition at line 359 of file interrupts_control.h.

Field Documentation

int16_t controller_t::a[3]

PI 'k', 'k-1' and 'k-2' error coefficient. Q format.

Definition at line 361 of file interrupts_control.h.

Referenced by control_loop_init(), and voltage_loop().

int16_t controller_t::b[3]

PI 'k', 'k-1' and 'k-2' duty cycle coefficient. Q format.

Definition at line 362 of file interrupts_control.h.

int16_t controller_t::error[3]

Voltage error

Definition at line 365 of file interrupts_control.h.

Referenced by control_loop_init(), and voltage_loop().

float controller_t::fIn_peak[3]

Peaking filter inputs (current and previous). Float format.

Definition at line 378 of file interrupts_control.h.

Referenced by control_loop_init().

bool controller_t::first_iter

First iteration of the voltage loop

Definition at line 375 of file interrupts_control.h.

Referenced by state_control(), and voltage_loop().

float controller_t::fOut_peak[3]

Peaking filter outputs (current and previous). Float format.

Definition at line 379 of file interrupts_control.h.

Referenced by control_loop_init().

int32_t controller_t::int_calc

Intermediate calculation of the regulator in steady state

Definition at line 367 of file interrupts_control.h.

Referenced by voltage_loop().

uint16_t controller_t::int_ref

Reference value

Definition at line 373 of file interrupts_control.h.

Referenced by control_loop_init(), state_control(), and voltage_loop().

uint16_t controller_t::int_ref_steady

Steady-state Reference value

Definition at line 374 of file interrupts_control.h.

Referenced by control_loop_init(), and state_control().

int16_t* controller_t::output

Output of the regulator

Definition at line 371 of file interrupts_control.h.

Referenced by control_loop_init(), and voltage_loop().

int32_t controller_t::output_int

Intermediate output of the regulator in steady state

Definition at line 368 of file interrupts_control.h.

Referenced by burst_mode(), control_loop_init(), state_control(), and voltage_loop().

int16_t* controller_t::output_int_limit

Limited intermediate output of the regulator in steady state

Definition at line 369 of file interrupts_control.h.

Referenced by burst_mode(), control_loop_init(), state_control(), and voltage_loop().

int16_t controller_t::output_max

Maximum output to act as a loop saturation

Definition at line 372 of file interrupts_control.h.

uint8_t controller_t::qformat

Q format of the coefficients.

Definition at line 363 of file interrupts_control.h.

int16_t controller_t::qOut_peak

Peaking filter limited output. Same Q format than output_int_limit.

Definition at line 380 of file interrupts_control.h.

Referenced by control_loop_init().

ramp_loop_mode_t controller_t::ramp_loop

Indicated if the period is linearly increased (false) or the loop is controlling the output voltage (true)

Definition at line 376 of file interrupts_control.h.

Referenced by state_control(), and voltage_loop().

uint8_t controller_t::shift_to_q15

Applicable shift to obtain Q15 output

Definition at line 364 of file interrupts_control.h.

int16_t controller_t::soft_start

Intermediate output of the regulator during Soft-start

Definition at line 370 of file interrupts_control.h.

Referenced by control_loop_init(), state_control(), and voltage_loop().

int32_t controller_t::state[3]

Current ('k') and previous ('k-1' / 'k-2') output calculated value

Definition at line 366 of file interrupts_control.h.

Referenced by burst_mode(), control_loop_init(), state_control(), and voltage_loop().


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