24 #ifndef __SPECIAL_FUNCTION_LAYER_V_LOOP_H__
25 #define __SPECIAL_FUNCTION_LAYER_V_LOOP_H__
57 } __attribute__((packed));
69 } __attribute__((packed));
155 volatile fractional ctrl_input,
156 volatile fractional ctrl_output
void v_loop_Precharge(volatile struct NPNZ16b_s *controller, volatile fractional ctrl_input, volatile fractional ctrl_output)
Prototype of the Assembly routine '_v_loop_Precharge' loading user-defined values into the NPNZ16b co...
volatile uint16_t v_loop_Initialize(volatile struct NPNZ16b_s *controller)
Initializes controller coefficient arrays and normalization factors.
void v_loop_Update(volatile struct NPNZ16b_s *controller)
Prototype of the Assembly feedback control loop routine helping to call the v_loop controller from C-...
void v_loop_Reset(volatile struct NPNZ16b_s *controller)
Prototype of the Assembly routine '_v_loop_Reset' clearing the NPNZ16b controller output and error hi...
void v_loop_PTermUpdate(volatile struct NPNZ16b_s *controller)
Prototype of the alternate Assembly P-Term control loop helping to call the v_loop P-Term controller ...
volatile struct NPNZ16b_s v_loop
External reference to user-defined NPNZ16b controller data object 'v_loop'.
volatile int16_t v_loop_pterm_scaler
Bit-shift scaler of the P-Term Coefficient for Plant Measurements.
volatile int16_t v_loop_pterm_factor
Q15 fractional of the P-Term Coefficient for Plant Measurements.
Generic NPNZ16b Controller Object. This data structure is the main API data object providing single-p...
Data structure packing A- and B- coefficient arrays in a linear memory space for optimized DSP code e...
volatile int32_t ACoefficients[2]
volatile int32_t BCoefficients[3]
Data structure packing A- and B- coefficient arrays in a linear memory space for optimized DSP code e...
volatile fractional ControlHistory[2]
volatile fractional ErrorHistory[3]