|
ChibiOS 21.11.4
|
HTS221 MEMS interface module code. More...
Go to the source code of this file.
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 |
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 |
HTS221 MEMS interface module code.
Definition in file hts221.c.