42 volatile uint16_t v_loop_ACoefficients_size = (
sizeof(v_loop_coefficients.
ACoefficients)/
sizeof(v_loop_coefficients.
ACoefficients[0]));
43 volatile uint16_t v_loop_BCoefficients_size = (
sizeof(v_loop_coefficients.
BCoefficients)/
sizeof(v_loop_coefficients.
BCoefficients[0]));
47 volatile uint16_t v_loop_ErrorHistory_size = (
sizeof(v_loop_histories.
ErrorHistory)/
sizeof(v_loop_histories.
ErrorHistory[0]));
61 volatile int32_t v_loop_ACoefficients [2] =
67 volatile int32_t v_loop_BCoefficients [3] =
75 volatile int16_t v_loop_pre_scaler = 3;
76 volatile int16_t v_loop_post_shift_A = 0;
77 volatile int16_t v_loop_post_shift_B = 0;
78 volatile fractional v_loop_post_scaler = 0x0000;
101 volatile uint16_t i=0;
123 v_loop_coefficients.
ACoefficients[i] = v_loop_ACoefficients[i];
124 v_loop_coefficients.
ACoefficients[i] = v_loop_ACoefficients[i];
130 v_loop_coefficients.
BCoefficients[i] = v_loop_BCoefficients[i];
131 v_loop_coefficients.
BCoefficients[i] = v_loop_BCoefficients[i];
132 v_loop_coefficients.
BCoefficients[i] = v_loop_BCoefficients[i];
volatile uint16_t v_loop_Initialize(volatile struct NPNZ16b_s *controller)
Initializes controller coefficient arrays and normalization factors.
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...
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.
volatile uint16_t value
Controller status full register access.
volatile uint16_t BCoefficientsArraySize
Size of the B coefficients array in X-space.
volatile fractional * ptrControlHistory
Pointer to n delay-line samples located in Y-space with first sample being the most recent.
volatile int16_t normPostShiftB
Normalization of B-term control output to Q15 (R/W)
volatile uint16_t ErrorHistoryArraySize
Size of the error history array in Y-space.
volatile int16_t PTermFactor
Q15 P-Term Coefficient Factor (R/W)
volatile int16_t normPostScaler
Control output normalization factor (Q15) (R/W)
volatile int32_t * ptrBCoefficients
Pointer to B coefficients located in X-space.
volatile int16_t PTermScaler
Q15 P-Term Coefficient Bit-Shift Scaler (R/W)
volatile int32_t * ptrACoefficients
Pointer to A coefficients located in X-space.
volatile uint16_t ACoefficientsArraySize
Size of the A coefficients array in X-space.
volatile uint16_t ControlHistoryArraySize
Size of the control history array in Y-space.
volatile int16_t normPostShiftA
Normalization of A-term control output to Q15 (R/W)
volatile int16_t normPreShift
Normalization of ADC-resolution to Q15 (R/W)
volatile fractional * ptrErrorHistory
Pointer to n+1 delay-line samples located in Y-space with first sample being the most recent.
Generic NPNZ16b Controller Object. This data structure is the main API data object providing single-p...
volatile struct NPNZ_STATUS_s status
Control Loop Status and Control flags.
volatile struct NPNZ_FILTER_PARAMS_s Filter
Filter parameters such as pointer to history and coefficient arrays and number scaling.
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]