Contains current sensor initialization and calibration evaluation. More...
Go to the source code of this file.
Data Structures | |
struct | SENSOR_OFFSET_CAL_s |
Stores data related to sensor calibration, including data related to sensor offset. More... | |
Macros | |
#define | SENSOR_OFFSET_NUM_MEASUREMENTS (1000) |
Number of measurement to calculate the average over. | |
Typedefs | |
typedef struct SENSOR_OFFSET_CAL_s | SENSOR_OFFSET_CAL_t |
Functions | |
static void __inline__ | Dev_SensorOffsetCal (SENSOR_OFFSET_CAL_t *sensor, uint16_t adcReading) |
Measure the sensor offset. | |
void | Dev_CurrentSensorOffsetCal (void) |
Measures the currents sensor offset. | |
uint16_t | Dev_CurrentSensor_Get_CalibrationStatus (void) |
API function to get the calibration status. | |
uint16_t | Dev_CurrentSensor_Get_Offset (void) |
API function to get the sensor offset. | |
void | Dev_CurrentSensor_Clr_Offset (void) |
API function to clear the sensor offset. | |
Variables | |
SENSOR_OFFSET_CAL_t | isecAvgCurrentSensor |
Data Object of sensor offset calibration. | |
<>
Definition in file dev_current_sensor.c.
#define SENSOR_OFFSET_NUM_MEASUREMENTS (1000) |
Definition at line 13 of file dev_current_sensor.c.
typedef struct SENSOR_OFFSET_CAL_s SENSOR_OFFSET_CAL_t |
Definition at line 31 of file dev_current_sensor.c.