From 812af485ea41fe162bb6fb888045318152bf2c66 Mon Sep 17 00:00:00 2001 From: Gergő J. Miklós Date: Wed, 15 May 2019 20:27:59 +0200 Subject: hih61xx refactored --- src/hih61xx.h | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) (limited to 'src/hih61xx.h') diff --git a/src/hih61xx.h b/src/hih61xx.h index 8675562..44effd6 100644 --- a/src/hih61xx.h +++ b/src/hih61xx.h @@ -11,12 +11,28 @@ void hih61xx_list_all(void); void hih61xx_read_all(const char *opts); */ void hih61xx_print_all(void); -void hih61xx_get_data(void); -void hih61xx_conf_set(const uchar *opts); -unsigned char hih61xx_read_status(void); -float hih61xx_calc_humidity(float offset); -float hih61xx_read_temp(float offset); void hih61xx_read_all(const uchar *opts); void hih61xx_read_one(const uchar *opts); +void hih61xx_conf_set(const uchar *opts); + + +// Local functions + +// uchar *xchg_data (uchar *buf, uint8 wrlen, uint8 waitlen, uint8 rdlen); +// static float calc_temp(uchar *buf, float offset); +// static uchar calc_status(uchar *buf); +// static float calc_humidity(uchar *buf, float offset); + + + + + +// void hih61xx_get_data(void); +// unsigned char hih61xx_read_status(void); +// float hih61xx_calc_humidity(float offset); +// float hih61xx_read_temp(float offset); + + + +#endif -#endif \ No newline at end of file -- cgit v1.2.3