libximc  2.14.20
Data Fields
calibration_settings_t Struct Reference

Calibration settings. More...

Data Fields

float CSS1_A
 Scaling factor for the analog measurements of the A winding current.
float CSS1_B
 Offset for the analog measurements of the A winding current.
float CSS2_A
 Scaling factor for the analog measurements of the B winding current.
float CSS2_B
 Offset for the analog measurements of the B winding current.
float FullCurrent_A
 Scaling factor for the analog measurements of the full current.
float FullCurrent_B
 Offset for the analog measurements of the full current.

Detailed Description

Calibration settings.

This structure contains calibration settings. These settings are used to convert bare ADC values to winding currents in mA and the full current in mA. Parameters are grouped into pairs, XXX_A and XXX_B, representing linear equation coefficients. The first one is the slope, the second one is the constant term. Thus, XXX_Current[mA] = XXX_A[mA/ADC]*XXX_ADC_CODE[ADC] + XXX_B[mA].

See Also
get_calibration_settings
set_calibration_settings
get_calibration_settings, set_calibration_settings

Field Documentation

float CSS1_A

Scaling factor for the analog measurements of the A winding current.

float CSS1_B

Offset for the analog measurements of the A winding current.

float CSS2_A

Scaling factor for the analog measurements of the B winding current.

float CSS2_B

Offset for the analog measurements of the B winding current.

float FullCurrent_A

Scaling factor for the analog measurements of the full current.

float FullCurrent_B

Offset for the analog measurements of the full current.