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

Data Fields
NPNZ_GAIN_CONTROL_s Struct Reference

`#include <power_control/drivers/npnz16b.h>`

Collaboration diagram for NPNZ_GAIN_CONTROL_s:

## Data Fields
volatile uint16_t | AgcScaler
| Bit-shift scaler of Adaptive Gain Modulation factor. More...
volatile fractional | AgcFactor
| Q15 value of Adaptive Gain Modulation factor. More...
volatile fractional | AgcMedian
| Q15 value of Adaptive Gain Modulation nominal operating point. More...
volatile uint16_t | ptrAgcObserverFunction
| Function Pointer to Observer function updating the AGC modulation factor. This function pointer is stored in the data field as common unsigned integer value and needs to be casted as such. Example: my_loop.GainControl.ptrAgcObserverFunction = (uint16_t)(&my_AGCFactorUpdate);. More...

## Detailed Description

Definition at line 451 of file npnz16b.h.

## Field Documentation

## ◆ AgcFactor

volatile fractional AgcFactor

Q15 value of Adaptive Gain Modulation factor.

Definition at line 454 of file npnz16b.h.

## ◆ AgcMedian

volatile fractional AgcMedian

Q15 value of Adaptive Gain Modulation nominal operating point.

Definition at line 455 of file npnz16b.h.

## ◆ AgcScaler

volatile uint16_t AgcScaler

Bit-shift scaler of Adaptive Gain Modulation factor.

Definition at line 453 of file npnz16b.h.

## ◆ ptrAgcObserverFunction

volatile uint16_t ptrAgcObserverFunction

Function Pointer to Observer function updating the AGC modulation factor. This function pointer is stored in the data field as common unsigned integer value and needs to be casted as such. Example: my_loop.GainControl.ptrAgcObserverFunction = (uint16_t)(&my_AGCFactorUpdate);.

Definition at line 456 of file npnz16b.h.

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

- dpsk_boost_vmc.X/sources/power_control/drivers/npnz16b.h