|
ChibiOS 21.11.4
|

HTS221 data structures and types. | |
| enum | hts221_odr_t { HTS221_ODR_ONE_SHOT = 0x00 , HTS221_ODR_1HZ = 0x01 , HTS221_ODR_7HZ = 0x02 , HTS221_ODR_12P5HZ = 0x03 } |
| HTS221 output data rate and bandwidth. More... | |
| enum | hts221_avgh_t { HTS221_AVGH_4 = 0x00 , HTS221_AVGH_8 = 0x01 , HTS221_AVGH_16 = 0x02 , HTS221_AVGH_32 = 0x03 , HTS221_AVGH_64 = 0x04 , HTS221_AVGH_128 = 0x05 , HTS221_AVGH_256 = 0x06 , HTS221_AVGH_512 = 0x07 } |
| HTS221 humidity resolution. More... | |
| enum | hts221_avgt_t { HTS221_AVGT_2 = 0x00 , HTS221_AVGT_4 = 0x08 , HTS221_AVGT_8 = 0x10 , HTS221_AVGT_16 = 0x18 , HTS221_AVGT_32 = 0x20 , HTS221_AVGT_64 = 0x28 , HTS221_AVGT_128 = 0x30 , HTS221_AVGT_256 = 0x38 } |
| HTS221 temperature resolution. More... | |
| enum | hts221_bdu_t { HTS221_BDU_CONTINUOUS = 0x00 , HTS221_BDU_BLOCKED = 0x40 } |
| HTS221 block data update. More... | |
| enum | hts221_state_t { HTS221_UNINIT = 0 , HTS221_STOP = 1 , HTS221_READY = 2 } |
| Driver state machine possible states. More... | |
| typedef struct HTS221Driver | HTS221Driver |
| Structure representing a HTS221 driver. | |
| #define | _hts221_methods_alone |
HTS221 specific methods. | |
| #define | _hts221_methods |
HTS221 specific methods with inherited ones. | |
| #define | _hts221_data |
HTS221Driver specific data. | |
Version identification | |
| #define | EX_HTS221_VERSION "1.1.2" |
| HTS221 driver version string. | |
| #define | EX_HTS221_MAJOR 1 |
| HTS221 driver version major number. | |
| #define | EX_HTS221_MINOR 1 |
| HTS221 driver version minor number. | |
| #define | EX_HTS221_PATCH 2 |
| HTS221 driver version patch number. | |
| #define | HTS221_HYGRO_NUMBER_OF_AXES 1U |
| HTS221 hygrometer subsystem characteristics. | |
| #define | HTS221_HYGRO_SENS 0.00390625f |
| #define | HTS221_HYGRO_BIAS 0.0f |
| #define | HTS221_THERMO_NUMBER_OF_AXES 1U |
| HTS221 thermometer subsystem characteristics. | |
| #define | HTS221_THERMO_SENS 0.0015625f |
| #define | HTS221_THERMO_BIAS 0.0f |
HTS221 communication interfaces related bit masks | |
| #define | HTS221_DI_MASK 0xFF |
| #define | HTS221_DI(n) |
| #define | HTS221_AD_MASK 0x3F |
| #define | HTS221_AD(n) |
| #define | HTS221_MS (1 << 6) |
| #define | HTS221_RW (1 << 7) |
| #define | HTS221_SUB_MS (1 << 7) |
| #define | HTS221_SAD 0x5F |
HTS221 register addresses | |
| #define | HTS221_AD_WHO_AM_I 0x0F |
| #define | HTS221_AD_AV_CONF 0x10 |
| #define | HTS221_AD_CTRL_REG1 0x20 |
| #define | HTS221_AD_CTRL_REG2 0x21 |
| #define | HTS221_AD_CTRL_REG3 0x22 |
| #define | HTS221_AD_STATUS_REG 0x27 |
| #define | HTS221_AD_HUMIDITY_OUT_L 0x28 |
| #define | HTS221_AD_HUMIDITY_OUT_H 0x29 |
| #define | HTS221_AD_TEMP_OUT_L 0x2A |
| #define | HTS221_AD_TEMP_OUT_H 0x2B |
| #define | HTS221_AD_CALIB_0 0x30 |
| #define | HTS221_AD_CALIB_1 0x31 |
| #define | HTS221_AD_CALIB_2 0x32 |
| #define | HTS221_AD_CALIB_3 0x33 |
| #define | HTS221_AD_CALIB_4 0x34 |
| #define | HTS221_AD_CALIB_5 0x35 |
| #define | HTS221_AD_CALIB_6 0x36 |
| #define | HTS221_AD_CALIB_7 0x37 |
| #define | HTS221_AD_CALIB_8 0x38 |
| #define | HTS221_AD_CALIB_9 0x39 |
| #define | HTS221_AD_CALIB_A 0x3A |
| #define | HTS221_AD_CALIB_B 0x3B |
| #define | HTS221_AD_CALIB_C 0x3C |
| #define | HTS221_AD_CALIB_D 0x3D |
| #define | HTS221_AD_CALIB_E 0x3E |
| #define | HTS221_AD_CALIB_F 0x3F |
HTS221_CTRL_REG1 register bits definitions | |
| #define | HTS221_CTRL_REG1_MASK 0x87 |
| #define | HTS221_CTRL_REG1_ODR0 (1 << 0) |
| #define | HTS221_CTRL_REG1_ODR1 (1 << 1) |
| #define | HTS221_CTRL_REG1_BDU (1 << 2) |
| #define | HTS221_CTRL_REG1_PD (1 << 7) |
HTS221_CTRL_REG2 register bits definitions | |
| #define | HTS221_CTRL_REG2_MASK 0x83 |
| #define | HTS221_CTRL_REG2_ONE_SHOT (1 << 0) |
| #define | HTS221_CTRL_REG2_HEATER (1 << 1) |
| #define | HTS221_CTRL_REG2_BOOT (1 << 7) |
HTS221_CTRL_REG3 register bits definitions | |
| #define | HTS221_CTRL_REG3_MASK 0xC4 |
| #define | HTS221_CTRL_REG3_DRDY (1 << 2) |
| #define | HTS221_CTRL_REG3_PP_OD (1 << 6) |
| #define | HTS221_CTRL_REG3_INT_H_L (1 << 7) |
Configuration options | |
| #define | HTS221_USE_SPI FALSE |
| HTS221 SPI interface switch. | |
| #define | HTS221_SHARED_SPI FALSE |
| HTS221 shared SPI switch. | |
| #define | HTS221_USE_I2C TRUE |
| HTS221 I2C interface switch. | |
| #define | HTS221_SHARED_I2C FALSE |
| HTS221 shared I2C switch. | |
| #define | HTS221_USE_ADVANCED FALSE |
| HTS221 advanced configurations switch. | |
Data Structures | |
| struct | HTS221Config |
| HTS221 configuration structure. More... | |
| struct | HTS221VMT |
HTS221 virtual methods table. More... | |
| struct | HTS221Driver |
| HTS221 2-axis hygrometer/thermometer class. More... | |
Macros | |
| #define | HTS221_SEL(mask, offset) |
| #define | HTS221_FLAG_HYGRO_BIAS 0x01 |
| #define | HTS221_FLAG_HYGRO_SENS 0x02 |
| #define | HTS221_FLAG_THERMO_BIAS 0x04 |
| #define | HTS221_FLAG_THERMO_SENS 0x08 |
| #define | hts221HygrometerGetAxesNumber(devp) |
| Return the number of axes of the BaseHygrometer. | |
| #define | hts221HygrometerReadRaw(devp, axes) |
| Retrieves raw data from the BaseHygrometer. | |
| #define | hts221HygrometerReadCooked(devp, axes) |
| Retrieves cooked data from the BaseHygrometer. | |
| #define | hts221HygrometerSetBias(devp, bp) |
| Set bias values for the BaseHygrometer. | |
| #define | hts221HygrometerResetBias(devp) |
| Reset bias values for the BaseHygrometer. | |
| #define | hts221HygrometerSetSensitivity(devp, sp) |
| Set sensitivity values for the BaseHygrometer. | |
| #define | hts221HygrometerResetSensitivity(devp) |
| Reset sensitivity values for the BaseHygrometer. | |
| #define | hts221ThermometerGetAxesNumber(devp) |
| Return the number of axes of the BaseThermometer. | |
| #define | hts221ThermometerReadRaw(devp, axes) |
| Retrieves raw data from the BaseThermometer. | |
| #define | hts221ThermometerReadCooked(devp, axes) |
| Retrieves cooked data from the BaseThermometer. | |
| #define | hts221ThermometerSetBias(devp, bp) |
| Set bias values for the BaseThermometer. | |
| #define | hts221ThermometerResetBias(devp) |
| Reset bias values for the BaseThermometer. | |
| #define | hts221ThermometerSetSensitivity(devp, sp) |
| Set sensitivity values for the BaseThermometer. | |
| #define | hts221ThermometerResetSensitivity(devp) |
| Reset sensitivity values for the BaseThermometer. | |
Functions | |
| static msg_t | hts221I2CReadRegister (I2CDriver *i2cp, uint8_t reg, uint8_t *rxbuf, size_t n) |
| Reads registers value using I2C. | |
| static msg_t | hts221I2CWriteRegister (I2CDriver *i2cp, uint8_t *txbuf, size_t n) |
| Writes a value into a register using I2C. | |
| static msg_t | hts221Calibrate (HTS221Driver *devp) |
| Computes biases and sensitivities starting from data stored in calibration registers. | |
| static size_t | hygro_get_axes_number (void *ip) |
| Return the number of axes of the BaseHygrometer. | |
| static msg_t | hygro_read_raw (void *ip, int32_t axes[]) |
| Retrieves raw data from the BaseHygrometer. | |
| static msg_t | hygro_read_cooked (void *ip, float axes[]) |
| Retrieves cooked data from the BaseHygrometer. | |
| static msg_t | hygro_set_bias (void *ip, float *bp) |
| Set bias values for the BaseHygrometer. | |
| static msg_t | hygro_reset_bias (void *ip) |
| Reset bias values for the BaseHygrometer. | |
| static msg_t | hygro_set_sensitivity (void *ip, float *sp) |
| Set sensitivity values for the BaseHygrometer. | |
| static msg_t | hygro_reset_sensitivity (void *ip) |
| Reset sensitivity values for the BaseHygrometer. | |
| static size_t | thermo_get_axes_number (void *ip) |
| Return the number of axes of the BaseThermometer. | |
| static msg_t | thermo_read_raw (void *ip, int32_t axes[]) |
| Retrieves raw data from the BaseThermometer. | |
| static msg_t | thermo_read_cooked (void *ip, float *axis) |
| Retrieves cooked data from the BaseThermometer. | |
| static msg_t | thermo_set_bias (void *ip, float *bp) |
| Set bias values for the BaseThermometer. | |
| static msg_t | thermo_reset_bias (void *ip) |
| Reset bias values for the BaseThermometer. | |
| static msg_t | thermo_set_sensitivity (void *ip, float *sp) |
| Set sensitivity values for the BaseThermometer. | |
| static msg_t | thermo_reset_sensitivity (void *ip) |
| Reset sensitivity values for the BaseThermometer. | |
| void | hts221ObjectInit (HTS221Driver *devp) |
| Initializes an instance. | |
| void | hts221Start (HTS221Driver *devp, const HTS221Config *config) |
| Configures and activates HTS221 Complex Driver peripheral. | |
| void | hts221Stop (HTS221Driver *devp) |
| Deactivates the HTS221 Complex Driver peripheral. | |
Variables | |
| static const struct HTS221VMT | vmt_device |
| static const struct BaseHygrometerVMT | vmt_hygrometer |
| static const struct BaseThermometerVMT | vmt_thermometer |
| #define HTS221_SEL | ( | mask, | |
| offset ) |
Definition at line 37 of file hts221.c.
Referenced by hts221Calibrate().
| #define EX_HTS221_VERSION "1.1.2" |
| #define EX_HTS221_MAJOR 1 |
| #define EX_HTS221_MINOR 1 |
| #define EX_HTS221_PATCH 2 |
| #define HTS221_HYGRO_NUMBER_OF_AXES 1U |
HTS221 hygrometer subsystem characteristics.
Definition at line 72 of file hts221.h.
Referenced by hts221ObjectInit(), and hygro_get_axes_number().
| #define HTS221_THERMO_NUMBER_OF_AXES 1U |
HTS221 thermometer subsystem characteristics.
Definition at line 85 of file hts221.h.
Referenced by hts221ObjectInit(), and thermo_get_axes_number().
| #define HTS221_SUB_MS (1 << 7) |
Definition at line 102 of file hts221.h.
Referenced by hts221I2CReadRegister(), and hts221I2CWriteRegister().
| #define HTS221_SAD 0x5F |
Definition at line 104 of file hts221.h.
Referenced by hts221I2CReadRegister(), and hts221I2CWriteRegister().
| #define HTS221_AD_AV_CONF 0x10 |
Definition at line 112 of file hts221.h.
Referenced by hts221Start().
| #define HTS221_AD_CTRL_REG1 0x20 |
Definition at line 113 of file hts221.h.
Referenced by hts221Start(), and hts221Stop().
| #define HTS221_AD_HUMIDITY_OUT_L 0x28 |
Definition at line 117 of file hts221.h.
Referenced by hygro_read_raw().
| #define HTS221_AD_TEMP_OUT_L 0x2A |
Definition at line 119 of file hts221.h.
Referenced by thermo_read_raw().
| #define HTS221_AD_CALIB_0 0x30 |
Definition at line 121 of file hts221.h.
Referenced by hts221Calibrate().
| #define HTS221_CTRL_REG1_PD (1 << 7) |
Definition at line 147 of file hts221.h.
Referenced by hts221Start().
| #define HTS221_USE_SPI FALSE |
| #define HTS221_SHARED_SPI FALSE |
| #define HTS221_USE_I2C TRUE |
| #define HTS221_SHARED_I2C FALSE |
| #define HTS221_USE_ADVANCED FALSE |
| #define _hts221_methods_alone |
| #define _hts221_methods |
| #define _hts221_data |
HTS221Driver specific data.
| #define hts221HygrometerGetAxesNumber | ( | devp | ) |
Return the number of axes of the BaseHygrometer.
| [in] | devp | pointer to HTS221Driver. |
| #define hts221HygrometerReadRaw | ( | devp, | |
| axes ) |
Retrieves raw data from the BaseHygrometer.
| [in] | devp | pointer to HTS221Driver. |
| [out] | axes | a buffer which would be filled with raw data. |
| MSG_OK | if the function succeeded. |
| MSG_RESET | if one or more I2C errors occurred, the errors can be retrieved using i2cGetErrors(). |
| MSG_TIMEOUT | if a timeout occurred before operation end. |
| #define hts221HygrometerReadCooked | ( | devp, | |
| axes ) |
Retrieves cooked data from the BaseHygrometer.
| [in] | devp | pointer to HTS221Driver. |
| [out] | axes | a buffer which would be filled with cooked data. |
| MSG_OK | if the function succeeded. |
| MSG_RESET | if one or more I2C errors occurred, the errors can be retrieved using i2cGetErrors(). |
| MSG_TIMEOUT | if a timeout occurred before operation end. |
| #define hts221HygrometerSetBias | ( | devp, | |
| bp ) |
Set bias values for the BaseHygrometer.
| [in] | devp | pointer to HTS221Driver. |
| [in] | bp | a buffer which contains biases. |
| MSG_OK | if the function succeeded. |
| #define hts221HygrometerResetBias | ( | devp | ) |
Reset bias values for the BaseHygrometer.
| [in] | devp | pointer to HTS221Driver. |
| MSG_OK | if the function succeeded. |
| #define hts221HygrometerSetSensitivity | ( | devp, | |
| sp ) |
Set sensitivity values for the BaseHygrometer.
| [in] | devp | pointer to HTS221Driver. |
| [in] | sp | a buffer which contains sensitivities. |
| MSG_OK | if the function succeeded. |
| #define hts221HygrometerResetSensitivity | ( | devp | ) |
Reset sensitivity values for the BaseHygrometer.
| [in] | devp | pointer to HTS221Driver. |
| MSG_OK | if the function succeeded. |
| #define hts221ThermometerGetAxesNumber | ( | devp | ) |
Return the number of axes of the BaseThermometer.
| [in] | devp | pointer to HTS221Driver. |
| #define hts221ThermometerReadRaw | ( | devp, | |
| axes ) |
Retrieves raw data from the BaseThermometer.
| [in] | devp | pointer to HTS221Driver. |
| [out] | axes | a buffer which would be filled with raw data. |
| MSG_OK | if the function succeeded. |
| MSG_RESET | if one or more I2C errors occurred, the errors can be retrieved using i2cGetErrors(). |
| MSG_TIMEOUT | if a timeout occurred before operation end. |
| #define hts221ThermometerReadCooked | ( | devp, | |
| axes ) |
Retrieves cooked data from the BaseThermometer.
| [in] | devp | pointer to HTS221Driver. |
| [out] | axes | a buffer which would be filled with cooked data. |
| MSG_OK | if the function succeeded. |
| MSG_RESET | if one or more I2C errors occurred, the errors can be retrieved using i2cGetErrors(). |
| MSG_TIMEOUT | if a timeout occurred before operation end. |
| #define hts221ThermometerSetBias | ( | devp, | |
| bp ) |
Set bias values for the BaseThermometer.
| [in] | devp | pointer to HTS221Driver. |
| [in] | bp | a buffer which contains biases. |
| MSG_OK | if the function succeeded. |
| #define hts221ThermometerResetBias | ( | devp | ) |
Reset bias values for the BaseThermometer.
| [in] | devp | pointer to HTS221Driver. |
| MSG_OK | if the function succeeded. |
| #define hts221ThermometerSetSensitivity | ( | devp, | |
| sp ) |
Set sensitivity values for the BaseThermometer.
| [in] | devp | pointer to HTS221Driver. |
| [in] | sp | a buffer which contains sensitivities. |
| MSG_OK | if the function succeeded. |
| #define hts221ThermometerResetSensitivity | ( | devp | ) |
Reset sensitivity values for the BaseThermometer.
| [in] | devp | pointer to HTS221Driver. |
| MSG_OK | if the function succeeded. |
| typedef struct HTS221Driver HTS221Driver |
| enum hts221_odr_t |
| enum hts221_avgh_t |
HTS221 humidity resolution.
| enum hts221_avgt_t |
HTS221 temperature resolution.
| enum hts221_bdu_t |
| enum hts221_state_t |
Reads registers value using I2C.
| [in] | i2cp | pointer to the I2C interface |
| [in] | reg | first sub-register address |
| [out] | rxbuf | pointer to an output buffer |
| [in] | n | number of consecutive register to read |
Definition at line 69 of file hts221.c.
References HTS221_SAD, HTS221_SUB_MS, i2cMasterTransmitTimeout(), and TIME_INFINITE.
Referenced by hts221Calibrate(), hygro_read_raw(), and thermo_read_raw().

Writes a value into a register using I2C.
| [in] | i2cp | pointer to the I2C interface |
| [in] | txbuf | buffer containing sub-address value in first position and values to write |
| [in] | n | size of txbuf less one (not considering the first element) |
Definition at line 92 of file hts221.c.
References HTS221_SAD, HTS221_SUB_MS, i2cMasterTransmitTimeout(), and TIME_INFINITE.
Referenced by hts221Start(), and hts221Stop().

|
static |
Computes biases and sensitivities starting from data stored in calibration registers.
| [in] | devp | pointer to the HTS221 interface |
Definition at line 112 of file hts221.c.
References HTS221_AD_CALIB_0, HTS221_SEL, and hts221I2CReadRegister().
Referenced by hts221Start().

|
static |
Return the number of axes of the BaseHygrometer.
| [in] | ip | pointer to BaseHygrometer interface. |
Definition at line 173 of file hts221.c.
References HTS221_HYGRO_NUMBER_OF_AXES.
|
static |
Retrieves raw data from the BaseHygrometer.
| [in] | ip | pointer to BaseHygrometer interface. |
| [out] | axes | a buffer which would be filled with raw data. |
| MSG_OK | if the function succeeded. |
| MSG_RESET | if one or more I2C errors occurred, the errors can be retrieved using i2cGetErrors(). |
| MSG_TIMEOUT | if a timeout occurred before operation end. |
Definition at line 195 of file hts221.c.
References HTS221_AD_HUMIDITY_OUT_L, HTS221_READY, hts221I2CReadRegister(), I2C_READY, i2cAcquireBus(), i2cReleaseBus(), i2cStart(), MSG_OK, objGetInstance, osalDbgAssert, and osalDbgCheck.
Referenced by hygro_read_cooked().

|
static |
Retrieves cooked data from the BaseHygrometer.
| [in] | ip | pointer to BaseHygrometer interface. |
| [out] | axes | a buffer which would be filled with cooked data. |
| MSG_OK | if the function succeeded. |
| MSG_RESET | if one or more I2C errors occurred, the errors can be retrieved using i2cGetErrors(). |
| MSG_TIMEOUT | if a timeout occurred before operation end. |
Definition at line 249 of file hts221.c.
References HTS221_READY, hygro_read_raw(), objGetInstance, osalDbgAssert, and osalDbgCheck.

|
static |
Set bias values for the BaseHygrometer.
| [in] | ip | pointer to BaseHygrometer interface. |
| [in] | bp | a buffer which contains biases. |
| MSG_OK | if the function succeeded. |
| MSG_RESET | if one or more I2C errors occurred, the errors can be retrieved using i2cGetErrors(). |
| MSG_TIMEOUT | if a timeout occurred before operation end. |
Definition at line 284 of file hts221.c.
References HTS221_READY, MSG_OK, objGetInstance, osalDbgAssert, and osalDbgCheck.
|
static |
Reset bias values for the BaseHygrometer.
| [in] | ip | pointer to BaseHygrometer interface. |
| MSG_OK | if the function succeeded. |
Definition at line 310 of file hts221.c.
References HTS221_READY, MSG_OK, objGetInstance, osalDbgAssert, and osalDbgCheck.
|
static |
Set sensitivity values for the BaseHygrometer.
| [in] | ip | pointer to BaseHygrometer interface. |
| [in] | sp | a buffer which contains sensitivities. |
| MSG_OK | if the function succeeded. |
Definition at line 338 of file hts221.c.
References HTS221_READY, MSG_OK, objGetInstance, osalDbgAssert, and osalDbgCheck.
|
static |
Reset sensitivity values for the BaseHygrometer.
| [in] | ip | pointer to BaseHygrometer interface. |
| MSG_OK | if the function succeeded. |
Definition at line 363 of file hts221.c.
References HTS221_READY, MSG_OK, objGetInstance, osalDbgAssert, and osalDbgCheck.
|
static |
Return the number of axes of the BaseThermometer.
| [in] | ip | pointer to BaseThermometer interface. |
Definition at line 386 of file hts221.c.
References HTS221_THERMO_NUMBER_OF_AXES.
|
static |
Retrieves raw data from the BaseThermometer.
| [in] | ip | pointer to BaseThermometer interface. |
| [out] | axes | a buffer which would be filled with raw data. |
| MSG_OK | if the function succeeded. |
| MSG_RESET | if one or more I2C errors occurred, the errors can be retrieved using i2cGetErrors(). |
| MSG_TIMEOUT | if a timeout occurred before operation end. |
Definition at line 408 of file hts221.c.
References HTS221_AD_TEMP_OUT_L, HTS221_READY, hts221I2CReadRegister(), I2C_READY, i2cAcquireBus(), i2cReleaseBus(), i2cStart(), MSG_OK, objGetInstance, osalDbgAssert, and osalDbgCheck.
Referenced by thermo_read_cooked().

|
static |
Retrieves cooked data from the BaseThermometer.
| [in] | ip | pointer to BaseThermometer interface. |
| [out] | axis | a buffer which would be filled with cooked data. |
| MSG_OK | if the function succeeded. |
| MSG_RESET | if one or more I2C errors occurred, the errors can be retrieved using i2cGetErrors(). |
| MSG_TIMEOUT | if a timeout occurred before operation end. |
Definition at line 462 of file hts221.c.
References HTS221_READY, objGetInstance, osalDbgAssert, osalDbgCheck, and thermo_read_raw().

|
static |
Set bias values for the BaseThermometer.
| [in] | ip | pointer to BaseThermometer interface. |
| [in] | bp | a buffer which contains biases. |
| MSG_OK | if the function succeeded. |
Definition at line 494 of file hts221.c.
References HTS221_READY, MSG_OK, objGetInstance, osalDbgAssert, and osalDbgCheck.
|
static |
Reset bias values for the BaseThermometer.
| [in] | ip | pointer to BaseThermometer interface. |
| MSG_OK | if the function succeeded. |
Definition at line 521 of file hts221.c.
References HTS221_READY, MSG_OK, objGetInstance, osalDbgAssert, and osalDbgCheck.
|
static |
Set sensitivity values for the BaseThermometer.
| [in] | ip | pointer to BaseThermometer interface. |
| [in] | sp | a buffer which contains sensitivities. |
| MSG_OK | if the function succeeded. |
Definition at line 550 of file hts221.c.
References HTS221_READY, MSG_OK, objGetInstance, osalDbgAssert, and osalDbgCheck.
|
static |
Reset sensitivity values for the BaseThermometer.
| [in] | ip | pointer to BaseThermometer interface. |
| MSG_OK | if the function succeeded. |
Definition at line 576 of file hts221.c.
References HTS221_READY, MSG_OK, objGetInstance, osalDbgAssert, and osalDbgCheck.
| void hts221ObjectInit | ( | HTS221Driver * | devp | ) |
Initializes an instance.
| [out] | devp | pointer to the HTS221Driver object |
Definition at line 622 of file hts221.c.
References HTS221_HYGRO_NUMBER_OF_AXES, HTS221_STOP, HTS221_THERMO_NUMBER_OF_AXES, HTS221Driver::hygro_if, HTS221Driver::thermo_if, BaseHygrometer::vmt, BaseThermometer::vmt, HTS221Driver::vmt, vmt_device, vmt_hygrometer, and vmt_thermometer.
| void hts221Start | ( | HTS221Driver * | devp, |
| const HTS221Config * | config ) |
Configures and activates HTS221 Complex Driver peripheral.
| [in] | devp | pointer to the HTS221Driver object |
| [in] | config | pointer to the HTS221Config object |
Definition at line 647 of file hts221.c.
References HTS221_AD_AV_CONF, HTS221_AD_CTRL_REG1, HTS221_CTRL_REG1_PD, HTS221_READY, HTS221_STOP, hts221Calibrate(), hts221I2CWriteRegister(), i2cAcquireBus(), i2cReleaseBus(), i2cStart(), osalDbgAssert, osalDbgCheck, and osalThreadSleepMilliseconds.

| void hts221Stop | ( | HTS221Driver * | devp | ) |
Deactivates the HTS221 Complex Driver peripheral.
| [in] | devp | pointer to the HTS221Driver object |
Definition at line 755 of file hts221.c.
References HTS221_AD_CTRL_REG1, HTS221_READY, HTS221_STOP, hts221I2CWriteRegister(), i2cAcquireBus(), i2cReleaseBus(), i2cStart(), i2cStop(), osalDbgAssert, and osalDbgCheck.

|
static |
|
static |
Definition at line 597 of file hts221.c.
Referenced by hts221ObjectInit().
|
static |
Definition at line 604 of file hts221.c.
Referenced by hts221ObjectInit(), lps22hbObjectInit(), and lps25hObjectInit().