From 8186d093ec1a2fca82ff15ea03dec86f3ca4c401 Mon Sep 17 00:00:00 2001 From: Mihai Tudor Panu Date: Tue, 30 May 2017 13:09:01 -0700 Subject: [PATCH] htu21d: updated function descriptions in header for clarity Signed-off-by: Mihai Tudor Panu --- src/htu21d/htu21d.hpp | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/htu21d/htu21d.hpp b/src/htu21d/htu21d.hpp index b518d8e8..0dcc0a06 100644 --- a/src/htu21d/htu21d.hpp +++ b/src/htu21d/htu21d.hpp @@ -1,6 +1,6 @@ /* * Author: William Penner - * Copyright (c) 2014 Intel Corporation. + * Copyright (c) 2014-2017 Intel Corporation. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -97,18 +97,18 @@ class HTU21D { int sampleData(void); /** - * Gets the current measured humidity [RH] + * Gets the current measured humidity [%RH] * - * @param bSampleData Flag to read sensor - * @return The humidity sensor temp in degC + * @param bSampleData Flag to sample sensor (default false) + * @return Relative humidity in %RH */ float getHumidity(int bSampleData = false); /** * Gets the humidity cell temperature [degC] * - * @param bSampleData Flag to read sensor - * @return The humidity sensor temp in degC + * @param bSampleData Flag to sample sensor (default false) + * @return Temperature in degC */ float getTemperature(int bSampleData = false); @@ -117,7 +117,8 @@ class HTU21D { * calculates the compensated RH using the equation from * the datasheet. * - * @param bSampleData Flag to read sensor + * @param bSampleData Flag to sample sensor (default false) + * @return Compensated relative humidity in %RH */ float getCompRH(int bSampleData = false); @@ -126,7 +127,8 @@ class HTU21D { * will calculate the dew point in degreeC based on equation * from the datasheet. * - * @param bSampleData Flag to read sensor + * @param bSampleData Flag to sample sensor (default false) + * @return Dew point in degC */ float getDewPoint(int bSampleData = false); @@ -164,6 +166,7 @@ class HTU21D { * Tests the device and verifies it * is operating correctly. * + * @return 0 on success or error code */ int testSensor(void);