temphum 2.0.0.0
|
This file contains API for Temp Hum 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 | temphum_t |
Click ctx object definition. More... | |
struct | temphum_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | temphum_cfg_setup (temphum_cfg_t *cfg) |
Config Object Initialization function. | |
TEMPHIM_RETVAL | temphum_init (temphum_t *ctx, temphum_cfg_t *cfg) |
Initialization function. | |
void | temphum_default_cfg (temphum_t *ctx) |
Click Default Configuration function. | |
void | temphum_generic_write (temphum_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | temphum_generic_read (temphum_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint16_t | temphum_get_hum_data (temphum_t *ctx) |
Gets humidity data function. | |
uint16_t | temphum_get_temp_data (temphum_t *ctx) |
Gets temperature data function. | |
void | temphum_get_temp_hum (temphum_t *ctx, float *temperature, float *humidity) |
Gets temperature and humidity function. | |
float | temphum_get_temperature (temphum_t *ctx) |
Gets temperature in degrees Celsius function. | |
float | temphum_get_humidity (temphum_t *ctx) |
Gets humidity in degrees Celsius function. | |
This file contains API for Temp Hum Click driver.