libximc: calibration_settings_t Struct Reference

libximc 3.0.2

Data Fields
calibration_settings_t Struct Reference

Calibration settings. More...

`#include <ximc.h>`

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

## ◆ CSS1_A

float CSS1_A

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

## ◆ CSS1_B

float CSS1_B

Offset for the analog measurements of the A winding current.

## ◆ CSS2_A

float CSS2_A

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

## ◆ CSS2_B

float CSS2_B

Offset for the analog measurements of the B winding current.

## ◆ FullCurrent_A

float FullCurrent_A

Scaling factor for the analog measurements of the full current.

## ◆ FullCurrent_B

float FullCurrent_B

Offset for the analog measurements of the full current.