|  | Dual Active Bridge Development Board (Part-No. ) |
Content |  |  |  |  |  |

Loading...
Searching...
No Matches
Conversion Macros
Configuration Layer » Control Loop

Conversion macros for user-declarations of Adaptive Gain Modulation parameters. More...

Collaboration diagram for Conversion Macros:

#define | POWER_SCALER (14u)
#define | POWER_FACTOR (uint16_t)(((ADC_REFERENCE * ADC_REFERENCE * pow(2.0, POWER_SCALER))) / ((ADC_RESOLUTION * VSEC_SNS_GAIN) * (ADC_RESOLUTION * ISEC_AVG_SNS_GAIN)))
#define | AGC_VOLTAGE_FACTOR (uint32_t)(AGC_MINIMUM_VIN_THRESHOLD * pow(2.0, 15))
#define | AGC_MINIMUM_CURRENT_THRESHOLD (UNITS_FROM_ENG_TO_ADC(AGC_MINIMUM_ISEC_THRESHOLD,ISEC_AVG_SNS_GAIN,0.0))
#define | AGC_CURRENT_FACTOR (uint32_t)(AGC_MINIMUM_CURRENT_THRESHOLD * pow(2.0, 15))

## Detailed Description

Conversion macros converting physical quantities of parameters into binary (integer) numbers for registers and variables

## Macro Definition Documentation

## ◆ AGC_CURRENT_FACTOR

#define AGC_CURRENT_FACTOR (uint32_t)(AGC_MINIMUM_CURRENT_THRESHOLD * pow(2.0, 15))

Definition at line 170 of file macros.h.

## ◆ AGC_MINIMUM_CURRENT_THRESHOLD

#define AGC_MINIMUM_CURRENT_THRESHOLD (UNITS_FROM_ENG_TO_ADC(AGC_MINIMUM_ISEC_THRESHOLD,ISEC_AVG_SNS_GAIN,0.0))

Definition at line 169 of file macros.h.

## ◆ AGC_VOLTAGE_FACTOR

#define AGC_VOLTAGE_FACTOR (uint32_t)(AGC_MINIMUM_VIN_THRESHOLD * pow(2.0, 15))

Definition at line 168 of file macros.h.

## ◆ POWER_FACTOR

#define POWER_FACTOR (uint16_t)(((ADC_REFERENCE * ADC_REFERENCE * pow(2.0, POWER_SCALER))) / ((ADC_RESOLUTION * VSEC_SNS_GAIN) * (ADC_RESOLUTION * ISEC_AVG_SNS_GAIN)))

Definition at line 166 of file macros.h.

## ◆ POWER_SCALER

#define POWER_SCALER (14u)

Definition at line 165 of file macros.h.