![]() |
LibDriver SHTC3
|
shtc3 base driver modules More...
Data Structures | |
| struct | shtc3_handle_s |
| shtc3 handle structure definition More... | |
| struct | shtc3_info_s |
| shtc3 information structure definition More... | |
Typedefs | |
| typedef struct shtc3_handle_s | shtc3_handle_t |
| shtc3 handle structure definition | |
| typedef struct shtc3_info_s | shtc3_info_t |
| shtc3 information structure definition | |
Enumerations | |
| enum | shtc3_bool_t { SHTC3_BOOL_FALSE = 0x00 , SHTC3_BOOL_TRUE = 0x01 } |
| shtc3 bool enumeration definition More... | |
Functions | |
| uint8_t | shtc3_info (shtc3_info_t *info) |
| get chip's information | |
| uint8_t | shtc3_init (shtc3_handle_t *handle) |
| initialize the chip | |
| uint8_t | shtc3_deinit (shtc3_handle_t *handle) |
| close the chip | |
| uint8_t | shtc3_read (shtc3_handle_t *handle, shtc3_bool_t clock_stretching_enable, uint16_t *temperature_raw, float *temperature_s, uint16_t *humidity_raw, float *humidity_s) |
| normal read | |
| uint8_t | shtc3_read_low_power (shtc3_handle_t *handle, shtc3_bool_t clock_stretching_enable, uint16_t *temperature_raw, float *temperature_s, uint16_t *humidity_raw, float *humidity_s) |
| read in low power mode | |
| uint8_t | shtc3_soft_reset (shtc3_handle_t *handle) |
| soft reset the chip | |
| uint8_t | shtc3_sleep (shtc3_handle_t *handle) |
| sleep | |
| uint8_t | shtc3_wakeup (shtc3_handle_t *handle) |
| wakeup | |
shtc3 base driver modules
| typedef struct shtc3_handle_s shtc3_handle_t |
shtc3 handle structure definition
| typedef struct shtc3_info_s shtc3_info_t |
shtc3 information structure definition
| enum shtc3_bool_t |
shtc3 bool enumeration definition
| Enumerator | |
|---|---|
| SHTC3_BOOL_FALSE | disable |
| SHTC3_BOOL_TRUE | enable |
Definition at line 62 of file driver_shtc3.h.
| uint8_t shtc3_deinit | ( | shtc3_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to a shtc3 handle structure |
Definition at line 251 of file driver_shtc3.c.
| uint8_t shtc3_info | ( | shtc3_info_t * | info | ) |
get chip's information
| [out] | *info | pointer to a shtc3 info structure |
Definition at line 622 of file driver_shtc3.c.
| uint8_t shtc3_init | ( | shtc3_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | pointer to a shtc3 handle structure |
Definition at line 149 of file driver_shtc3.c.
| uint8_t shtc3_read | ( | shtc3_handle_t * | handle, |
| shtc3_bool_t | clock_stretching_enable, | ||
| uint16_t * | temperature_raw, | ||
| float * | temperature_s, | ||
| uint16_t * | humidity_raw, | ||
| float * | humidity_s ) |
normal read
| [in] | *handle | pointer to a shtc3 handle structure |
| [in] | clock_stretching_enable | clock stretching bool value |
| [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 301 of file driver_shtc3.c.
| uint8_t shtc3_read_low_power | ( | shtc3_handle_t * | handle, |
| shtc3_bool_t | clock_stretching_enable, | ||
| uint16_t * | temperature_raw, | ||
| float * | temperature_s, | ||
| uint16_t * | humidity_raw, | ||
| float * | humidity_s ) |
read in low power mode
| [in] | *handle | pointer to a shtc3 handle structure |
| [in] | clock_stretching_enable | clock stretching bool value |
| [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 384 of file driver_shtc3.c.
| uint8_t shtc3_sleep | ( | shtc3_handle_t * | handle | ) |
sleep
| [in] | *handle | pointer to a shtc3 handle structure |
Definition at line 499 of file driver_shtc3.c.
| uint8_t shtc3_soft_reset | ( | shtc3_handle_t * | handle | ) |
soft reset the chip
| [in] | *handle | pointer to a shtc3 handle structure |
Definition at line 462 of file driver_shtc3.c.
| uint8_t shtc3_wakeup | ( | shtc3_handle_t * | handle | ) |
wakeup
| [in] | *handle | pointer to a shtc3 handle structure |
Definition at line 535 of file driver_shtc3.c.