temphum23 2.1.0.0
|
This file contains API for TempHum 23 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | temphum23_t |
TempHum 23 Click context object. More... | |
struct | temphum23_cfg_t |
TempHum 23 Click configuration object. More... | |
Macros | |
#define | TEMPHUM23_CMD_MEAS_TH_HIGH_PREC 0xFD |
TempHum 23 command list. | |
#define | TEMPHUM23_CMD_MEAS_TH_MED_PREC 0xF6 |
#define | TEMPHUM23_CMD_MEAS_TH_LOW_PREC 0xE0 |
#define | TEMPHUM23_CMD_READ_SERIAL_NUM 0x89 |
#define | TEMPHUM23_CMD_SOFT_RESET 0x94 |
#define | TEMPHUM23_CMD_ACT_HEATER_200mW_1S 0x39 |
#define | TEMPHUM23_CMD_ACT_HEATER_200mW_0p1S 0x32 |
#define | TEMPHUM23_CMD_ACT_HEATER_110mW_1S 0x2F |
#define | TEMPHUM23_CMD_ACT_HEATER_110mW_0p1S 0x24 |
#define | TEMPHUM23_CMD_ACT_HEATER_20mW_1S 0x1E |
#define | TEMPHUM23_CMD_ACT_HEATER_20mW_0p1S 0x15 |
#define | TEMPHUM23_MAX_RH 100.0 |
TempHum 23 temperature and humidity calculation values. | |
#define | TEMPHUM23_MIN_RH 0.0 |
#define | TEMPHUM23_DATA_RESOLUTION 65535.0 |
#define | TEMPHUM23_ABS_MIN_TEMP ( -45.0 ) |
#define | TEMPHUM23_ABS_MAX_TEMP ( 130.0 ) |
#define | TEMPHUM23_ABS_MIN_HUM ( -6.0 ) |
#define | TEMPHUM23_ABS_MAX_HUM ( 119.0 ) |
#define | TEMPHUM23_DEVICE_ADDRESS 0x44 |
TempHum 23 device address setting. | |
#define | TEMPHUM23_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | temphum23_return_value_t { TEMPHUM23_OK = 0 , TEMPHUM23_ERROR = -1 } |
TempHum 23 Click return value data. More... | |
Functions | |
void | temphum23_cfg_setup (temphum23_cfg_t *cfg) |
TempHum 23 configuration object setup function. | |
err_t | temphum23_init (temphum23_t *ctx, temphum23_cfg_t *cfg) |
TempHum 23 initialization function. | |
err_t | temphum23_send_cmd (temphum23_t *ctx, uint8_t cmd) |
TempHum 23 send cmd function. | |
err_t | temphum23_read_response (temphum23_t *ctx, uint8_t *data_out) |
TempHum 23 read response function. | |
err_t | temphum23_soft_reset (temphum23_t *ctx) |
TempHum 23 soft reset function. | |
err_t | temphum23_read_serial_num (temphum23_t *ctx, uint32_t *serial_num) |
TempHum 23 read serial num function. | |
err_t | temphum23_read_measurement_high_precision (temphum23_t *ctx, float *temp, float *hum) |
TempHum 23 read measurement high precision function. | |
This file contains API for TempHum 23 Click Driver.