Qubit 2020 / presensfirmwareupdate

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers calibration.h Source File

calibration.h

00001 #ifndef CALIBRATION_H
00002 #define CALIBRATION_H
00003 
00004 /**
00005  * Calibrate temperature.
00006  *
00007  * @param temperature Temperature (C)
00008  * @return B value.
00009  */
00010 float calibrationTemperature(float temperature);
00011 
00012 /**
00013  * Save temperature calibration result.
00014  *
00015  * @param bValue B value.
00016  */
00017 void calibrationTemperatureSave(float bValue);
00018 
00019 /**
00020  * Apply O2 calibration parameters.
00021  */
00022 void calibrationO2(void);
00023 
00024 /**
00025  * Calibrate PH.
00026  *
00027  * @param phBuffer PH value
00028  * @param[out] phTemp Temperature
00029  * @param[out] slope Slope
00030  * @param[out] eo Eo
00031  */
00032 void calibrationPh(float phBuffer, float* phTemp, float* slope, float* eo, float* phVolts);
00033 
00034 /**
00035  * Save PH calibration results and restart board.
00036  */
00037 void calibrationPhSave(void);
00038 
00039 /**
00040  * Calibrate pump.
00041  *
00042  * @param[out] a Calculated polynom coefficient
00043  * @param[out] b Calculated polynom coefficient
00044  * @param[out] c Calculated polynom coefficient
00045  */
00046 void calibrationPump(float* a, float* b, float* c);
00047 
00048 #endif