temphum14 2.0.0.0
|
This file contains API for Temp Hum 14 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 | temphum14_t |
Temp Hum 14 Click context object. More... | |
struct | temphum14_cfg_t |
Temp Hum 14 Click configuration object. More... | |
struct | temphum14_diagn_t |
Enumerations | |
enum | temphum14_return_value_t { TEMPHUM14_OK = 0 , TEMPHUM14_ERROR = -1 } |
Temp Hum 14 Click return value data. More... | |
Functions | |
void | temphum14_cfg_setup (temphum14_cfg_t *cfg) |
Temp Hum 14 configuration object setup function. | |
err_t | temphum14_init (temphum14_t *ctx, temphum14_cfg_t *cfg) |
Temp Hum 14 initialization function. | |
err_t | temphum14_generic_write (temphum14_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len) |
Temp Hum 14 I2C writing function. | |
err_t | temphum14_generic_read (temphum14_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len) |
Temp Hum 14 I2C reading function. | |
void | temphum14_hw_reset (temphum14_t *ctx) |
HW reset function. | |
void | temphum14_set_cmd (temphum14_t *ctx, uint8_t cmd) |
Send command function. | |
void | temphum14_set_conversion (temphum14_t *ctx, uint8_t hum_osr, uint8_t temp_osr) |
Set conversion function. | |
void | temphum14_read_t_and_rh (temphum14_t *ctx, uint8_t *p_rx_data) |
Read temperature and humidity data function. | |
void | temphum14_get_temp_and_hum (temphum14_t *ctx, float *temp, float *hum) |
Get temperature and humidity data function. | |
void | temphum14_read_rh (temphum14_t *ctx, uint8_t *p_rx_data) |
Read humidity data function. | |
float | temphum14_get_hum (temphum14_t *ctx) |
Get humidity data function. | |
void | temphum14_soft_reset (temphum14_t *ctx) |
Soft reset function. | |
void | temphum14_set_heater (temphum14_t *ctx, uint8_t en_heater) |
Enable heater function. | |
void | temphum14_get_diagnostic (temphum14_t *ctx, temphum14_diagn_t *diag_data) |
Get diagnostic status function. | |
uint32_t | temphum14_get_serial_number (temphum14_t *ctx) |
Get serial number function. | |
This file contains API for Temp Hum 14 Click Driver.