temphum21
2.0.0.0
|
This file contains API for TempHum 21 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 | temphum21_t |
TempHum 21 Click context object. More... | |
struct | temphum21_cfg_t |
TempHum 21 Click configuration object. More... | |
Macros | |
#define | TEMPHUM21_STATUS_NORMAL_OP 0x00 |
TempHum 21 status bits. More... | |
#define | TEMPHUM21_STATUS_STALE_DATA 0x01 |
#define | TEMPHUM21_STATUS_COMMAND_MODE 0x02 |
#define | TEMPHUM21_STATUS_BIT_MASK 0x03 |
#define | TEMPHUM21_DATA_RES 0x3FFF |
TempHum 21 measurement calculation values. More... | |
#define | TEMPHUM21_TEMP_RES 165.0 |
#define | TEMPHUM21_TEMP_OFFSET 40.0 |
#define | TEMPHUM21_HUM_RES 100.0 |
#define | TEMPHUM21_SET_DEV_ADDR 0x27 |
TempHum 21 device address setting. More... | |
#define | TEMPHUM21_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. More... | |
Enumerations | |
enum | temphum21_return_value_t { TEMPHUM21_OK = 0, TEMPHUM21_ERROR = -1 } |
TempHum 21 Click return value data. More... | |
Functions | |
void | temphum21_cfg_setup (temphum21_cfg_t *cfg) |
TempHum 21 configuration object setup function. More... | |
err_t | temphum21_init (temphum21_t *ctx, temphum21_cfg_t *cfg) |
TempHum 21 initialization function. More... | |
err_t | temphum21_request_measurement (temphum21_t *ctx) |
TempHum 21 request measurement function. More... | |
err_t | temphum21_read_measurement (temphum21_t *ctx, float *temperature, float *humidity) |
TempHum 21 read measurement function. More... | |
uint8_t | temphum21_get_all_pin (temphum21_t *ctx) |
TempHum 21 get all pin function. More... | |
uint8_t | temphum21_get_alh_pin (temphum21_t *ctx) |
TempHum 21 get alh pin function. More... | |
This file contains API for TempHum 21 Click Driver.