Bar Logo Dual Active Bridge Development Board (Part-No. )
 
Content
     
Loading...
Searching...
No Matches
dev_current_sensor.c File Reference

Contains current sensor initialization and calibration evaluation. More...

#include <stdbool.h>
#include "config/macros.h"
#include "adc/adc1.h"
+ Include dependency graph for dev_current_sensor.c:

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.
 

Detailed Description

<>

Definition in file dev_current_sensor.c.

Macro Definition Documentation

◆ SENSOR_OFFSET_NUM_MEASUREMENTS

#define SENSOR_OFFSET_NUM_MEASUREMENTS   (1000)

Definition at line 13 of file dev_current_sensor.c.

Typedef Documentation

◆ SENSOR_OFFSET_CAL_t

Definition at line 31 of file dev_current_sensor.c.