Conversion macros for user-declarations of Primary Voltage Feedback parameters.
More...
#define | VPRI_OV_THRES_TRIG (UNITS_FROM_ENG_TO_ADC(VPRI_OV_THRES_TRIG_VOLTS,VPRI_SNS_GAIN,VPRI_SNS_OFS)) |
|
#define | VPRI_OV_THRES_CLEAR (UNITS_FROM_ENG_TO_ADC(VPRI_OV_THRES_CLEAR_VOLTS,VPRI_SNS_GAIN,VPRI_SNS_OFS)) |
|
#define | VPRI_OV_T_BLANK_TRIG ((uint16_t)(_rnd(VPRI_OV_T_BLANK_TRIG_SEC / VSEC_OV_TICK_SEC))) |
|
#define | VPRI_OV_T_BLANK_CLEAR ((uint16_t)(_rnd(VPRI_OV_T_BLANK_CLEAR_SEC / VSEC_OV_TICK_SEC))) |
|
#define | VPRI_UV_THRES_TRIG (UNITS_FROM_ENG_TO_ADC(VPRI_UV_THRES_TRIG_VOLTS,VPRI_SNS_GAIN,VPRI_SNS_OFS)) |
|
#define | VPRI_UV_THRES_CLEAR (UNITS_FROM_ENG_TO_ADC(VPRI_UV_THRES_CLEAR_VOLTS,VPRI_SNS_GAIN,VPRI_SNS_OFS)) |
|
#define | VPRI_UV_T_BLANK_TRIG ((uint16_t)(_rnd(VPRI_UV_T_BLANK_TRIG_SEC / VSEC_UV_TICK_SEC))) |
|
#define | VPRI_UV_T_BLANK_CLEAR ((uint16_t)(_rnd(VPRI_UV_T_BLANK_CLEAR_SEC / VSEC_UV_TICK_SEC))) |
|
#define | VPRIM_LOAD_STEP_CLAMP (UNITS_FROM_ENG_TO_ADC( VPRIM_LOAD_STEP_CLAMPING_VOLTS,VPRI_SNS_GAIN,0.0)) |
|
#define | VPRI_SCALER (10u) |
|
#define | VPRI_FACTOR (uint16_t)((1 / VPRI_VOLTAGE_GAIN) * VPRI_SCALER) |
|
These conversion macros are used to convert user settings defined as physical quantities into binary (integer) numbers, which will be written to registers and variables and used in calculations throughout the firmware.
◆ VPRI_FACTOR
◆ VPRI_OV_T_BLANK_CLEAR
◆ VPRI_OV_T_BLANK_TRIG
◆ VPRI_OV_THRES_CLEAR
◆ VPRI_OV_THRES_TRIG
◆ VPRI_SCALER
#define VPRI_SCALER (10u) |
◆ VPRI_UV_T_BLANK_CLEAR
◆ VPRI_UV_T_BLANK_TRIG
◆ VPRI_UV_THRES_CLEAR
◆ VPRI_UV_THRES_TRIG
◆ VPRIM_LOAD_STEP_CLAMP