TEMPERATURE

Files

file  temperature.h
 Sensor API for temperature and humidity sensor readings.
 

Functions

KSensorStatus k_initialize_temperature_sensor (void)
 Setup the temperature sensor interface and any related sensors. More...
 
KSensorStatus k_get_temperature (float *temp)
 Reads back temperature data from related sensor. More...
 
KSensorStatus k_get_humidity (float *hum)
 Reads back humidity data from related sensor. More...
 

Function Documentation

KSensorStatus k_get_humidity ( float *  hum)

Reads back humidity data from related sensor.

Parameters
humpointer to relative humidity in percentage (0.0 - 100.0)
Returns
KSensorStatus, SENSOR_OK on success, SENSOR_ERROR, SENSOR_READ_ERROR, SENSOR_WRITE_ERROR on error
KSensorStatus k_get_temperature ( float *  temp)

Reads back temperature data from related sensor.

Parameters
temppointer to temperature in celsius (-40.0 to 125.0)
Returns
KSensorStatus, SENSOR_OK on success, SENSOR_ERROR, SENSOR_READ_ERROR, SENSOR_WRITE_ERROR on error
KSensorStatus k_initialize_temperature_sensor ( void  )

Setup the temperature sensor interface and any related sensors.

Returns
KSensorStatus, SENSOR_OK on success or SENSOR_WRITE_ERROR on error