![]()  | 
  
    LibDriver SHT4X
    
   | 
 
sht4x base driver modules More...
Data Structures | |
| struct | sht4x_handle_s | 
| sht4x handle structure definition  More... | |
| struct | sht4x_info_s | 
| sht4x information structure definition  More... | |
Typedefs | |
| typedef struct sht4x_handle_s | sht4x_handle_t | 
| sht4x handle structure definition   | |
| typedef struct sht4x_info_s | sht4x_info_t | 
| sht4x information structure definition   | |
Enumerations | |
| enum | sht4x_address_t { SHT4X_ADDRESS_0 = (0x44 << 1) , SHT4X_ADDRESS_1 = (0x45 << 1) , SHT4X_ADDRESS_2 = (0x46 << 1) } | 
| sht4x address enumeration definition  More... | |
| enum | sht4x_mode_t {  SHT4X_MODE_HIGH_PRECISION_WITH_NO_HEATER = 0xFD , SHT4X_MODE_MEDIUM_PRECISION_WITH_NO_HEATER = 0xF6 , SHT4X_MODE_LOWEST_PRECISION_WITH_NO_HEATER = 0xE0 , SHT4X_MODE_HIGH_PRECISION_WITH_HEATER_200MW_1S = 0x39 , SHT4X_MODE_HIGH_PRECISION_WITH_HEATER_200MW_0P1S = 0x32 , SHT4X_MODE_HIGH_PRECISION_WITH_HEATER_110MW_1S = 0x2F , SHT4X_MODE_HIGH_PRECISION_WITH_HEATER_110MW_0P1S = 0x24 , SHT4X_MODE_HIGH_PRECISION_WITH_HEATER_20MW_1S = 0x1E , SHT4X_MODE_HIGH_PRECISION_WITH_HEATER_20MW_0P1S = 0x15 }  | 
| sht4x mode enumeration definition  More... | |
Functions | |
| uint8_t | sht4x_info (sht4x_info_t *info) | 
| get chip's information   | |
| uint8_t | sht4x_set_addr (sht4x_handle_t *handle, sht4x_address_t addr) | 
| set the iic address   | |
| uint8_t | sht4x_get_addr (sht4x_handle_t *handle, sht4x_address_t *addr) | 
| get the iic address   | |
| uint8_t | sht4x_init (sht4x_handle_t *handle) | 
| initialize the chip   | |
| uint8_t | sht4x_deinit (sht4x_handle_t *handle) | 
| close the chip   | |
| uint8_t | sht4x_read (sht4x_handle_t *handle, sht4x_mode_t mode, uint16_t *temperature_raw, float *temperature_s, uint16_t *humidity_raw, float *humidity_s) | 
| read temperature and humidity   | |
| uint8_t | sht4x_soft_reset (sht4x_handle_t *handle) | 
| soft reset the chip   | |
| uint8_t | sht4x_get_serial_number (sht4x_handle_t *handle, uint8_t num[4]) | 
| get serial number   | |
sht4x base driver modules
| typedef struct sht4x_handle_s sht4x_handle_t | 
sht4x handle structure definition
| typedef struct sht4x_info_s sht4x_info_t | 
sht4x information structure definition
| enum sht4x_address_t | 
sht4x address enumeration definition
| Enumerator | |
|---|---|
| SHT4X_ADDRESS_0 | address0  | 
| SHT4X_ADDRESS_1 | address1  | 
| SHT4X_ADDRESS_2 | address2  | 
Definition at line 62 of file driver_sht4x.h.
| enum sht4x_mode_t | 
sht4x mode enumeration definition
Definition at line 72 of file driver_sht4x.h.
| uint8_t sht4x_deinit | ( | sht4x_handle_t * | handle | ) | 
close the chip
| [in] | *handle | pointer to an sht4x handle structure | 
Definition at line 201 of file driver_sht4x.c.
| uint8_t sht4x_get_addr | ( | sht4x_handle_t * | handle, | 
| sht4x_address_t * | addr ) | 
get the iic address
| [in] | *handle | pointer to an sht4x handle structure | 
| [out] | *addr | pointer to a chip iic address buffer | 
Definition at line 265 of file driver_sht4x.c.
| uint8_t sht4x_get_serial_number | ( | sht4x_handle_t * | handle, | 
| uint8_t | num[4] ) | 
get serial number
| [in] | *handle | pointer to an sht4x handle structure | 
| [out] | *num | pointer to a number buffer | 
Definition at line 484 of file driver_sht4x.c.
| uint8_t sht4x_info | ( | sht4x_info_t * | info | ) | 
get chip's information
| [out] | *info | pointer to an sht4x info structure | 
Definition at line 596 of file driver_sht4x.c.
| uint8_t sht4x_init | ( | sht4x_handle_t * | handle | ) | 
initialize the chip
| [in] | *handle | pointer to an sht4x handle structure | 
Definition at line 127 of file driver_sht4x.c.
| uint8_t sht4x_read | ( | sht4x_handle_t * | handle, | 
| sht4x_mode_t | mode, | ||
| uint16_t * | temperature_raw, | ||
| float * | temperature_s, | ||
| uint16_t * | humidity_raw, | ||
| float * | humidity_s ) | 
read temperature and humidity
| [in] | *handle | pointer to an sht4x handle structure | 
| [in] | mode | read mode | 
| [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 293 of file driver_sht4x.c.
| uint8_t sht4x_set_addr | ( | sht4x_handle_t * | handle, | 
| sht4x_address_t | addr ) | 
set the iic address
| [in] | *handle | pointer to an sht4x handle structure | 
| [in] | addr | chip iic address | 
Definition at line 243 of file driver_sht4x.c.
| uint8_t sht4x_soft_reset | ( | sht4x_handle_t * | handle | ) | 
soft reset the chip
| [in] | *handle | pointer to an sht4x handle structure | 
Definition at line 537 of file driver_sht4x.c.