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

Data Input/Output Port declaration of memory addresses, signal offsets and normalization settings. More...

#include <power_control/drivers/npnz16b.h>

+ Inheritance diagram for NPNZ_PORT_s:
+ Collaboration diagram for NPNZ_PORT_s:

Data Fields

volatile uint16_t * ptrAddress
 Pointer to register or variable where the value is read from (e.g. ADCBUFx) or written to (e.g. PGxDC) More...
 
volatile int16_t NormScaler
 Bit-shift scaler of the Q15 normalization factor. More...
 
volatile fractional NormFactor
 Q15 normalization factor. More...
 
volatile int16_t Offset
 Value/signal offset of this port. More...
 
- Data Fields inherited from NPNZ_PORTS_s
volatile struct NPNZ_PORT_s Source
 Primary data input port declaration. More...
 
volatile struct NPNZ_PORT_s AltSource
 Secondary data input port declaration. More...
 
volatile struct NPNZ_PORT_s Target
 Primary data output port declaration. More...
 
volatile struct NPNZ_PORT_s AltTarget
 Secondary data output port declaration. More...
 
volatile uint16_t * ptrControlReference
 Pointer to global variable of input register holding the controller reference value (e.g. uint16_t my_ref) 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

Data Input/Output Port declaration of memory addresses, signal offsets and normalization settings.

The NPNZ_PORT_s data object defines the basic parameters required to read data from or write data to user-defined memory addresses as well as offers data fields for additional settings such as normalization scaling factors or signal offsets, which can be used to compensate analog offsets and normalize raw ADC data to other ADC input values and their respective physical struct NPNZ_PORT_t declares its individual source/target memory address, normalization quantity.

Definition at line 226 of file npnz16b.h.

Field Documentation

◆ NormFactor

volatile fractional NormFactor

Q15 normalization factor.

Definition at line 230 of file npnz16b.h.

◆ NormScaler

volatile int16_t NormScaler

Bit-shift scaler of the Q15 normalization factor.

Definition at line 229 of file npnz16b.h.

◆ Offset

volatile int16_t Offset

Value/signal offset of this port.

Definition at line 231 of file npnz16b.h.

◆ ptrAddress

volatile uint16_t* ptrAddress

Pointer to register or variable where the value is read from (e.g. ADCBUFx) or written to (e.g. PGxDC)

Definition at line 228 of file npnz16b.h.


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