Bar Logo Dual Active Bridge Development Board (Part-No. )
 
Content
     
Loading...
Searching...
No Matches

Conversion macros for user-declarations of Secondary Current Feedback parameters. More...

+ Collaboration diagram for Conversion Macros:
#define ISEC_OC_THRES_TRIG   (UNITS_FROM_ENG_TO_ADC(ISEC_OC_THRES_TRIG_AMPS,ISEC_CT_SNS_GAIN,ISEC_CT_SNS_OFS))
 
#define ISEC_OC_THRES_CLEAR   (UNITS_FROM_ENG_TO_ADC(ISEC_OC_THRES_CLEAR_AMPS,ISEC_CT_SNS_GAIN,ISEC_CT_SNS_OFS))
 
#define ISEC_OC_T_BLANK_TRIG   ((uint16_t)(_rnd(ISEC_OC_T_BLANK_TRIG_SEC / ISEC_OC_TICK_SEC)))
 
#define ISEC_OC_T_BLANK_CLEAR   ((uint16_t)(_rnd(ISEC_OC_T_BLANK_CLEAR_SEC / ISEC_OC_TICK_SEC)))
 
#define ISEC_SC_THRES_TRIG   (UNITS_FROM_ENG_TO_ADC(ISEC_SC_THRES_TRIG_AMPS,ISEC_CT_SNS_GAIN,ISEC_CT_SNS_OFS))
 
#define ISEC_LOAD_STEP_CLAMP   (UNITS_FROM_ENG_TO_ADC(ISEC_LOAD_STEP_CLAMPING_AMPS,ISEC_AVG_SNS_GAIN,0))
 
#define ISEC_AVG_SENSOR_OFFSET_LIMIT_HIGH   (_rnd((ISEC_AVG_SNS_OFS*1.05)/3.3*4096.0))
 
#define ISEC_AVG_SENSOR_OFFSET_LIMIT_LOW   (_rnd((ISEC_AVG_SNS_OFS*0.95)/3.3*4096.0))
 

Detailed Description

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.

Macro Definition Documentation

◆ ISEC_AVG_SENSOR_OFFSET_LIMIT_HIGH

#define ISEC_AVG_SENSOR_OFFSET_LIMIT_HIGH   (_rnd((ISEC_AVG_SNS_OFS*1.05)/3.3*4096.0))

Definition at line 83 of file macros.h.

◆ ISEC_AVG_SENSOR_OFFSET_LIMIT_LOW

#define ISEC_AVG_SENSOR_OFFSET_LIMIT_LOW   (_rnd((ISEC_AVG_SNS_OFS*0.95)/3.3*4096.0))

Definition at line 84 of file macros.h.

◆ ISEC_LOAD_STEP_CLAMP

Definition at line 77 of file macros.h.

◆ ISEC_OC_T_BLANK_CLEAR

#define ISEC_OC_T_BLANK_CLEAR   ((uint16_t)(_rnd(ISEC_OC_T_BLANK_CLEAR_SEC / ISEC_OC_TICK_SEC)))

Definition at line 74 of file macros.h.

◆ ISEC_OC_T_BLANK_TRIG

#define ISEC_OC_T_BLANK_TRIG   ((uint16_t)(_rnd(ISEC_OC_T_BLANK_TRIG_SEC / ISEC_OC_TICK_SEC)))

Definition at line 73 of file macros.h.

◆ ISEC_OC_THRES_CLEAR

Definition at line 72 of file macros.h.

◆ ISEC_OC_THRES_TRIG

Definition at line 71 of file macros.h.

◆ ISEC_SC_THRES_TRIG

Definition at line 76 of file macros.h.