temphum7 2.0.0.0
|
This file contains API for Temp&Hum 7 Click driver. More...
#include "drv_digital_out.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | temphum7_t |
Click ctx object definition. More... | |
struct | temphum7_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | temphum7_cfg_setup (temphum7_cfg_t *cfg) |
Config Object Initialization function. | |
TEMPHUM7_RETVAL | temphum7_init (temphum7_t *ctx, temphum7_cfg_t *cfg) |
Initialization function. | |
void | temphum7_default_cfg (temphum7_t *ctx) |
Click Default Configuration function. | |
void | temphum7_generic_write (temphum7_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | temphum7_generic_read (temphum7_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
float | temphum7_get_relative_humidity (temphum7_t *ctx, uint8_t mode_data) |
Relative humidity. | |
float | temphum7_get_temperature (temphum7_t *ctx, uint8_t mode_data) |
Temerature. | |
void | temphum7_get_electronic_serial_number (temphum7_t *ctx, uint8_t *esn_buffer) |
Electronic serial number. | |
uint8_t | temphum7_get_firmware_revision (temphum7_t *ctx) |
Firmware revision. | |
float | temphum7_get_heater_current (temphum7_t *ctx) |
Heater current. | |
void | temphum7_reset (temphum7_t *ctx) |
Reset. | |
This file contains API for Temp&Hum 7 Click driver.
#define TEMPHUM7_DATA_FROM_PREVIOUS_RH_MEASUREMENT 0x02 |
#define TEMPHUM7_HOLD_MASTER_MODE 0x00 |
#define TEMPHUM7_NOHOLD_MASTER_MODE 0x01 |