![]() |
LibDriver HTU21D
|
htu21d example driver modules More...
Macros | |
| #define | HTU21D_BASIC_DEFAULT_MODE HTU21D_MODE_NO_HOLD_MASTER |
| htu21d basic example default definition | |
| #define | HTU21D_BASIC_DEFAULT_RESOLUTION HTU21D_RESOLUTION_TEMP_14_BITS_RH_12_BITS |
| #define | HTU21D_BASIC_DEFAULT_HEATER HTU21D_BOOL_FALSE |
| #define | HTU21D_BASIC_DEFAULT_OTP_RELOAD HTU21D_BOOL_FALSE |
Functions | |
| uint8_t | htu21d_basic_init (void) |
| basic example init | |
| uint8_t | htu21d_basic_read (float *temperature, float *humidity) |
| basic example read | |
| uint8_t | htu21d_basic_deinit (void) |
| basic example deinit | |
| uint8_t | htu21d_basic_get_serial_number (uint64_t *number) |
| basic example get the serial number | |
htu21d example driver modules
| #define HTU21D_BASIC_DEFAULT_HEATER HTU21D_BOOL_FALSE |
disable heater
Definition at line 58 of file driver_htu21d_basic.h.
| #define HTU21D_BASIC_DEFAULT_MODE HTU21D_MODE_NO_HOLD_MASTER |
htu21d basic example default definition
no hold master mode
Definition at line 56 of file driver_htu21d_basic.h.
| #define HTU21D_BASIC_DEFAULT_OTP_RELOAD HTU21D_BOOL_FALSE |
enable otp reload
Definition at line 59 of file driver_htu21d_basic.h.
| #define HTU21D_BASIC_DEFAULT_RESOLUTION HTU21D_RESOLUTION_TEMP_14_BITS_RH_12_BITS |
temp 14 bits and rh 12 bits
Definition at line 57 of file driver_htu21d_basic.h.
| uint8_t htu21d_basic_deinit | ( | void | ) |
basic example deinit
Definition at line 149 of file driver_htu21d_basic.c.
| uint8_t htu21d_basic_get_serial_number | ( | uint64_t * | number | ) |
basic example get the serial number
| [out] | *number | pointer to a number buffer |
Definition at line 170 of file driver_htu21d_basic.c.
| uint8_t htu21d_basic_init | ( | void | ) |
basic example init
Definition at line 48 of file driver_htu21d_basic.c.
| uint8_t htu21d_basic_read | ( | float * | temperature, |
| float * | humidity ) |
basic example read
| [out] | *temperature | pointer to a converted temperature buffer |
| [out] | *humidity | pointer to a converted humidity buffer |
Definition at line 125 of file driver_htu21d_basic.c.