![]() |
LibDriver SHT85
|
sht85 base driver modules More...
Data Structures | |
| struct | sht85_handle_s |
| sht85 handle structure definition More... | |
| struct | sht85_info_s |
| sht85 information structure definition More... | |
Typedefs | |
| typedef struct sht85_handle_s | sht85_handle_t |
| sht85 handle structure definition | |
| typedef struct sht85_info_s | sht85_info_t |
| sht85 information structure definition | |
Enumerations | |
| enum | sht85_bool_t { SHT85_BOOL_FALSE = 0x00 , SHT85_BOOL_TRUE = 0x01 } |
| sht85 bool enumeration definition More... | |
| enum | sht85_rate_t { SHT85_RATE_0P5HZ = 0x20 , SHT85_RATE_1HZ = 0x21 , SHT85_RATE_2HZ = 0x22 , SHT85_RATE_4HZ = 0x23 , SHT85_RATE_10HZ = 0x27 } |
| sht85 rate enumeration definition More... | |
| enum | sht85_repeatability_t { SHT85_REPEATABILITY_HIGH = 0x00 , SHT85_REPEATABILITY_MEDIUM = 0x01 , SHT85_REPEATABILITY_LOW = 0x02 } |
| sht85 repeatability enumeration definition More... | |
| enum | sht85_status_t { SHT85_STATUS_ALERT_PENDING_STATUS = (1 << 15) , SHT85_STATUS_HEATER_ON = (1 << 13) , SHT85_STATUS_HUMIDITY_ALERT = (1 << 11) , SHT85_STATUS_TEMPERATURE_ALERT = (1 << 10) , SHT85_STATUS_SYSTEM_RESET = (1 << 4) , SHT85_STATUS_COMMAND_STATUS = (1 << 1) , SHT85_STATUS_CHECKSUM_STATUS = (1 << 0) } |
| sht85 status enumeration definition More... | |
Functions | |
| uint8_t | sht85_info (sht85_info_t *info) |
| get chip's information | |
| uint8_t | sht85_init (sht85_handle_t *handle) |
| initialize the chip | |
| uint8_t | sht85_deinit (sht85_handle_t *handle) |
| close the chip | |
| uint8_t | sht85_single_read (sht85_handle_t *handle, uint16_t *temperature_raw, float *temperature_s, uint16_t *humidity_raw, float *humidity_s) |
| read data once | |
| uint8_t | sht85_start_continuous_read (sht85_handle_t *handle, sht85_rate_t rate) |
| start reading | |
| uint8_t | sht85_stop_continuous_read (sht85_handle_t *handle) |
| stop reading | |
| uint8_t | sht85_continuous_read (sht85_handle_t *handle, uint16_t *temperature_raw, float *temperature_s, uint16_t *humidity_raw, float *humidity_s) |
| read data continuously | |
| uint8_t | sht85_get_status (sht85_handle_t *handle, uint16_t *status) |
| get the current status | |
| uint8_t | sht85_clear_status (sht85_handle_t *handle) |
| clear the current status | |
| uint8_t | sht85_set_repeatability (sht85_handle_t *handle, sht85_repeatability_t repeatability) |
| set the measurement repeatability | |
| uint8_t | sht85_get_repeatability (sht85_handle_t *handle, sht85_repeatability_t *repeatability) |
| get the measurement repeatability | |
| uint8_t | sht85_set_art (sht85_handle_t *handle) |
| set the chip art | |
| uint8_t | sht85_soft_reset (sht85_handle_t *handle) |
| soft reset the chip | |
| uint8_t | sht85_set_heater (sht85_handle_t *handle, sht85_bool_t enable) |
| enable or disable the chip heater | |
| uint8_t | sht85_get_serial_number (sht85_handle_t *handle, uint8_t sn[4]) |
| get serial number | |
sht85 base driver modules
| typedef struct sht85_handle_s sht85_handle_t |
sht85 handle structure definition
| typedef struct sht85_info_s sht85_info_t |
sht85 information structure definition
| enum sht85_bool_t |
sht85 bool enumeration definition
| Enumerator | |
|---|---|
| SHT85_BOOL_FALSE | disable function |
| SHT85_BOOL_TRUE | enable function |
Definition at line 62 of file driver_sht85.h.
| enum sht85_rate_t |
sht85 rate enumeration definition
| Enumerator | |
|---|---|
| SHT85_RATE_0P5HZ | 0.5Hz sample rate |
| SHT85_RATE_1HZ | 1Hz sample rate |
| SHT85_RATE_2HZ | 2Hz sample rate |
| SHT85_RATE_4HZ | 4Hz sample rate |
| SHT85_RATE_10HZ | 10Hz sample rate |
Definition at line 71 of file driver_sht85.h.
sht85 repeatability enumeration definition
| Enumerator | |
|---|---|
| SHT85_REPEATABILITY_HIGH | high repeatability |
| SHT85_REPEATABILITY_MEDIUM | medium repeatability |
| SHT85_REPEATABILITY_LOW | low repeatability |
Definition at line 83 of file driver_sht85.h.
| enum sht85_status_t |
sht85 status enumeration definition
Definition at line 93 of file driver_sht85.h.
| uint8_t sht85_clear_status | ( | sht85_handle_t * | handle | ) |
clear the current status
| [in] | *handle | pointer to a sht85 handle structure |
Definition at line 311 of file driver_sht85.c.
| uint8_t sht85_continuous_read | ( | sht85_handle_t * | handle, |
| uint16_t * | temperature_raw, | ||
| float * | temperature_s, | ||
| uint16_t * | humidity_raw, | ||
| float * | humidity_s ) |
read data continuously
| [in] | *handle | pointer to a sht85 handle structure |
| [out] | *temperature_raw | pointer to a raw temperature buffer |
| [out] | *temperature_s | pointer to a converted temperature buffer |
| [out] | *humidity_raw | pointer to a raw humidity buffer |
| [out] | *humidity_s | pointer to a converted humidity buffer |
Definition at line 646 of file driver_sht85.c.
| uint8_t sht85_deinit | ( | sht85_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to a sht85 handle structure |
Definition at line 219 of file driver_sht85.c.
| uint8_t sht85_get_repeatability | ( | sht85_handle_t * | handle, |
| sht85_repeatability_t * | repeatability ) |
get the measurement repeatability
| [in] | *handle | pointer to a sht85 handle structure |
| [out] | *repeatability | pointer to a measurement repeatability buffer |
Definition at line 373 of file driver_sht85.c.
| uint8_t sht85_get_serial_number | ( | sht85_handle_t * | handle, |
| uint8_t | sn[4] ) |
get serial number
| [in] | *handle | pointer to a sht85 handle structure |
| [out] | *sn | pointer to a serial number buffer |
Definition at line 824 of file driver_sht85.c.
| uint8_t sht85_get_status | ( | sht85_handle_t * | handle, |
| uint16_t * | status ) |
get the current status
| [in] | *handle | pointer to a sht85 handle structure |
| [out] | *status | pointer to a status buffer |
Definition at line 263 of file driver_sht85.c.
| uint8_t sht85_info | ( | sht85_info_t * | info | ) |
get chip's information
| [out] | *info | pointer to a sht85 info structure |
Definition at line 927 of file driver_sht85.c.
| uint8_t sht85_init | ( | sht85_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | pointer to a sht85 handle structure |
Definition at line 145 of file driver_sht85.c.
| uint8_t sht85_set_art | ( | sht85_handle_t * | handle | ) |
set the chip art
| [in] | *handle | pointer to a sht85 handle structure |
Definition at line 701 of file driver_sht85.c.
| uint8_t sht85_set_heater | ( | sht85_handle_t * | handle, |
| sht85_bool_t | enable ) |
enable or disable the chip heater
| [in] | *handle | pointer to a sht85 handle structure |
| [in] | enable | bool value |
Definition at line 774 of file driver_sht85.c.
| uint8_t sht85_set_repeatability | ( | sht85_handle_t * | handle, |
| sht85_repeatability_t | repeatability ) |
set the measurement repeatability
| [in] | *handle | pointer to a sht85 handle structure |
| [in] | repeatability | measurement repeatability |
Definition at line 347 of file driver_sht85.c.
| uint8_t sht85_single_read | ( | sht85_handle_t * | handle, |
| uint16_t * | temperature_raw, | ||
| float * | temperature_s, | ||
| uint16_t * | humidity_raw, | ||
| float * | humidity_s ) |
read data once
| [in] | *handle | pointer to a sht85 handle structure |
| [out] | *temperature_raw | pointer to a raw temperature buffer |
| [out] | *temperature_s | pointer to a converted temperature buffer |
| [out] | *humidity_raw | pointer to a raw humidity buffer |
| [out] | *humidity_s | pointer to a converted humidity buffer |
Definition at line 403 of file driver_sht85.c.
| uint8_t sht85_soft_reset | ( | sht85_handle_t * | handle | ) |
soft reset the chip
| [in] | *handle | pointer to a sht85 handle structure |
Definition at line 737 of file driver_sht85.c.
| uint8_t sht85_start_continuous_read | ( | sht85_handle_t * | handle, |
| sht85_rate_t | rate ) |
start reading
| [in] | *handle | pointer to a sht85 handle structure |
| [in] | rate | sample rate |
Definition at line 478 of file driver_sht85.c.
| uint8_t sht85_stop_continuous_read | ( | sht85_handle_t * | handle | ) |
stop reading
| [in] | *handle | pointer to a sht85 handle structure |
Definition at line 606 of file driver_sht85.c.