Change-Id: I2912e0944dd22a0efb1178dbfe7f10aaa23fa56c
*/
int co2_sensor_read(int ch_num, unsigned int *out_value);
*/
int co2_sensor_read(int ch_num, unsigned int *out_value);
+/* release co2 sensor resource */
void co2_sensor_close(void);
void co2_sensor_close(void);
+/* utility function : convert adc value(from MCP3008) to voltage */
double co2_sensor_value_to_voltage(unsigned int value);
double co2_sensor_value_to_voltage(unsigned int value);
-/* Fallowing functions art Not implemented, please see comments in c source code */
+/* Following functions are Not implemented, please see comments in c source code */
int co2_sensor_set_calibration_values(unsigned int zero_point_v,
unsigned int second_point_ppm, unsigned int second_point_v);
unsigned int co2_sensor_voltage_to_ppm(double voltage);
int co2_sensor_set_calibration_values(unsigned int zero_point_v,
unsigned int second_point_ppm, unsigned int second_point_v);
unsigned int co2_sensor_voltage_to_ppm(double voltage);
*
******************************************************************/
#ifndef __CO2_LOG_H__
*
******************************************************************/
#ifndef __CO2_LOG_H__
******************************************************************/
#ifndef __SENSOR_DATA_H__
******************************************************************/
#ifndef __SENSOR_DATA_H__
-#define __SENSOR_DATA_H__
+#define __SENSOR_DATA_H__
result = ((rx_w2 << 8) | (rx_w3)) & UINT10_VALIDATION_MASK;
result = ((rx_w2 << 8) | (rx_w3)) & UINT10_VALIDATION_MASK;
- // _D("%hu", result);
-
*out_value = result;
return 0;
*out_value = result;
return 0;