Digital Power Starter Kit 3 Firmware
dsPIC33C Buck Converter Voltage Mode Control Example

Filter Coefficient Arrays, Number Format Handling and Input/Output History Parameters. More...

#include <power_control/drivers/npnz16b.h>

+ Inheritance diagram for NPNZ_FILTER_PARAMS_s:
+ Collaboration diagram for NPNZ_FILTER_PARAMS_s:

Data Fields

volatile int32_t * ptrACoefficients
 Pointer to A coefficients located in X-space. More...
 
volatile int32_t * ptrBCoefficients
 Pointer to B coefficients located in X-space. More...
 
volatile fractional * ptrControlHistory
 Pointer to n delay-line samples located in Y-space with first sample being the most recent. More...
 
volatile fractional * ptrErrorHistory
 Pointer to n+1 delay-line samples located in Y-space with first sample being the most recent. More...
 
volatile uint16_t ACoefficientsArraySize
 Size of the A coefficients array in X-space. More...
 
volatile uint16_t BCoefficientsArraySize
 Size of the B coefficients array in X-space. More...
 
volatile uint16_t ControlHistoryArraySize
 Size of the control history array in Y-space. More...
 
volatile uint16_t ErrorHistoryArraySize
 Size of the error history array in Y-space. More...
 
volatile int16_t normPreShift
 Normalization of ADC-resolution to Q15 (R/W) More...
 
volatile int16_t normPostShiftA
 Normalization of A-term control output to Q15 (R/W) More...
 
volatile int16_t normPostShiftB
 Normalization of B-term control output to Q15 (R/W) More...
 
volatile int16_t normPostScaler
 Control output normalization factor (Q15) (R/W) More...
 
volatile int16_t PTermScaler
 Q15 P-Term Coefficient Bit-Shift Scaler (R/W) More...
 
volatile int16_t PTermFactor
 Q15 P-Term Coefficient Factor (R/W) More...
 
- Data Fields inherited from NPNZ16b_s
volatile struct NPNZ_STATUS_s status
 Control Loop Status and Control flags. More...
 
volatile struct NPNZ_PORTS_s Ports
 Controller input and output ports. More...
 
volatile struct NPNZ_FILTER_PARAMS_s Filter
 Filter parameters such as pointer to history and coefficient arrays and number scaling. More...
 
volatile struct NPNZ_GAIN_CONTROL_s GainControl
 Parameter section for advanced control options. More...
 
volatile struct NPNZ_LIMITS_s Limits
 Input and output clamping values. More...
 
volatile struct NPNZ_ADC_TRGCTRL_s ADCTriggerControl
 Automatic ADC trigger placement options for ADC Trigger A and B. More...
 
volatile struct NPNZ_DATA_PROVIDERS_s DataProviders
 Automated data sources pushing recent data points to user-defined variables. More...
 
volatile struct NPNZ_EXTENSION_HOOKS_s ExtensionHooks
 User extension function triggers using function pointers with parameters. More...
 
volatile struct NPNZ_USER_DATA_BUFFER_s Advanced
 Parameter section for advanced user control options. More...
 

Detailed Description

Filter Coefficient Arrays, Number Format Handling and Input/Output History Parameters.

The NPNZ_FILTER_PARAMS_t data object holds all configuration parameters of the compensation filter. These parameters include pointers to external arrays of filter coefficients, error and control history as well as number format normalization parameters like pre- and post- scalers.

Definition at line 284 of file npnz16b.h.

Field Documentation

◆ ACoefficientsArraySize

volatile uint16_t ACoefficientsArraySize

Size of the A coefficients array in X-space.

Definition at line 292 of file npnz16b.h.

◆ BCoefficientsArraySize

volatile uint16_t BCoefficientsArraySize

Size of the B coefficients array in X-space.

Definition at line 293 of file npnz16b.h.

◆ ControlHistoryArraySize

volatile uint16_t ControlHistoryArraySize

Size of the control history array in Y-space.

Definition at line 294 of file npnz16b.h.

◆ ErrorHistoryArraySize

volatile uint16_t ErrorHistoryArraySize

Size of the error history array in Y-space.

Definition at line 295 of file npnz16b.h.

◆ normPostScaler

volatile int16_t normPostScaler

Control output normalization factor (Q15) (R/W)

Definition at line 301 of file npnz16b.h.

◆ normPostShiftA

volatile int16_t normPostShiftA

Normalization of A-term control output to Q15 (R/W)

Definition at line 299 of file npnz16b.h.

◆ normPostShiftB

volatile int16_t normPostShiftB

Normalization of B-term control output to Q15 (R/W)

Definition at line 300 of file npnz16b.h.

◆ normPreShift

volatile int16_t normPreShift

Normalization of ADC-resolution to Q15 (R/W)

Definition at line 298 of file npnz16b.h.

◆ PTermFactor

volatile int16_t PTermFactor

Q15 P-Term Coefficient Factor (R/W)

Definition at line 305 of file npnz16b.h.

◆ PTermScaler

volatile int16_t PTermScaler

Q15 P-Term Coefficient Bit-Shift Scaler (R/W)

Definition at line 304 of file npnz16b.h.

◆ ptrACoefficients

volatile int32_t* ptrACoefficients

Pointer to A coefficients located in X-space.

Definition at line 286 of file npnz16b.h.

◆ ptrBCoefficients

volatile int32_t* ptrBCoefficients

Pointer to B coefficients located in X-space.

Definition at line 287 of file npnz16b.h.

◆ ptrControlHistory

volatile fractional* ptrControlHistory

Pointer to n delay-line samples located in Y-space with first sample being the most recent.

Definition at line 288 of file npnz16b.h.

◆ ptrErrorHistory

volatile fractional* ptrErrorHistory

Pointer to n+1 delay-line samples located in Y-space with first sample being the most recent.

Definition at line 289 of file npnz16b.h.


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