The Current Sensor Calibration device layer is a proprietary user code utilized for configuring the sensor properties.
More...
◆ Dev_CurrentSensor_Clr_Offset()
void Dev_CurrentSensor_Clr_Offset |
( |
void |
| ) |
|
◆ Dev_CurrentSensor_Get_CalibrationStatus()
uint16_t Dev_CurrentSensor_Get_CalibrationStatus |
( |
void |
| ) |
|
- Returns
- true calibration complete
-
false calibration is not complete
Definition at line 101 of file dev_current_sensor.c.
◆ Dev_CurrentSensor_Get_Offset()
uint16_t Dev_CurrentSensor_Get_Offset |
( |
void |
| ) |
|
◆ Dev_CurrentSensorOffsetCal()
void Dev_CurrentSensorOffsetCal |
( |
void |
| ) |
|
- Returns
- void
This function continuously evaluate the current sensor ADC value until the calibration has been completed.
Definition at line 87 of file dev_current_sensor.c.
◆ Dev_SensorOffsetCal()
static void __inline__ Dev_SensorOffsetCal |
( |
SENSOR_OFFSET_CAL_t * |
sensor, |
|
|
uint16_t |
adcReading |
|
) |
| |
|
static |
- Parameters
-
sensor | pointer to object of type SENSOR_OFFSET_CAL_t |
adcReading | most recent ADC reading |
- Returns
- void
This function takes number of samples of adc sample for averaging before acquiring the sensor offset value and checks if it is in the acceptable range before setting the calibration bit complete.
Definition at line 57 of file dev_current_sensor.c.
◆ isecAvgCurrentSensor
Initial value:= {.CalibrationComplete = false,
.Accumulator = 0,
.MeasurementCounter = 0,
#define ISEC_AVG_SENSOR_OFFSET_LIMIT_LOW
#define ISEC_AVG_SENSOR_OFFSET_LIMIT_HIGH
The 'isecAvgCurrentSensor' data object holds the averaging parameter of the sensor offset calibration.
Definition at line 40 of file dev_current_sensor.c.