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

Loading...
Searching...
No Matches
Conversion Macros
Configuration Layer » Primary Current Feedback

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

Collaboration diagram for Conversion Macros:

#define | IPRI_OC_THRES_TRIG (UNITS_FROM_ENG_TO_ADC(IPRI_OC_THRES_TRIG_AMPS,IPRI_CT_SNS_GAIN,IPRI_CT_SNS_OFS))
#define | IPRI_OC_THRES_CLEAR (UNITS_FROM_ENG_TO_ADC(IPRI_OC_THRES_CLEAR_AMPS,IPRI_CT_SNS_GAIN,IPRI_CT_SNS_OFS))
#define | IPRI_OC_T_BLANK_TRIG ((uint16_t)(_rnd(IPRI_OC_T_BLANK_TRIG_SEC / IPRI_OC_TICK_SEC)))
#define | IPRI_OC_T_BLANK_CLEAR ((uint16_t)(_rnd(IPRI_OC_T_BLANK_CLEAR_SEC / IPRI_OC_TICK_SEC)))
#define | IPRI_SC_THRES_TRIG (UNITS_FROM_ENG_TO_ADC(IPRI_SC_THRES_TRIG_AMPS,IPRI_CT_SNS_GAIN,IPRI_CT_SNS_OFS))
#define | I_SC_T_BLANK_CLEAR ((uint16_t)(_rnd(I_SC_T_BLANK_CLEAR_SEC / I_SC_TICK_SEC)))

## 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

## ◆ I_SC_T_BLANK_CLEAR

#define I_SC_T_BLANK_CLEAR ((uint16_t)(_rnd(I_SC_T_BLANK_CLEAR_SEC / I_SC_TICK_SEC)))

Definition at line 98 of file macros.h.

## ◆ IPRI_OC_T_BLANK_CLEAR

#define IPRI_OC_T_BLANK_CLEAR ((uint16_t)(_rnd(IPRI_OC_T_BLANK_CLEAR_SEC / IPRI_OC_TICK_SEC)))

Definition at line 95 of file macros.h.

## ◆ IPRI_OC_T_BLANK_TRIG

#define IPRI_OC_T_BLANK_TRIG ((uint16_t)(_rnd(IPRI_OC_T_BLANK_TRIG_SEC / IPRI_OC_TICK_SEC)))

Definition at line 94 of file macros.h.

## ◆ IPRI_OC_THRES_CLEAR

#define IPRI_OC_THRES_CLEAR (UNITS_FROM_ENG_TO_ADC(IPRI_OC_THRES_CLEAR_AMPS,IPRI_CT_SNS_GAIN,IPRI_CT_SNS_OFS))

Definition at line 93 of file macros.h.

## ◆ IPRI_OC_THRES_TRIG

#define IPRI_OC_THRES_TRIG (UNITS_FROM_ENG_TO_ADC(IPRI_OC_THRES_TRIG_AMPS,IPRI_CT_SNS_GAIN,IPRI_CT_SNS_OFS))

Definition at line 92 of file macros.h.

## ◆ IPRI_SC_THRES_TRIG

#define IPRI_SC_THRES_TRIG (UNITS_FROM_ENG_TO_ADC(IPRI_SC_THRES_TRIG_AMPS,IPRI_CT_SNS_GAIN,IPRI_CT_SNS_OFS))

Definition at line 97 of file macros.h.