temphum13 2.0.0.0
|
This file contains API for TempHum 13 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 | temphum13_t |
Click ctx object definition. More... | |
struct | temphum13_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | TEMPHUM13_MAP_MIKROBUS(cfg, mikrobus) |
#define | TEMPHUM13_RETVAL uint8_t |
#define | TEMPHUM13_OK 0x00 |
#define | TEMPHUM13_INIT_ERROR 0xFF |
#define | TEMPHUM13_DEVICE_ADDRESS 0x40 |
#define | TEMPHUM13_CMD_TRIG_TEMP_MEAS_HOLD 0xE3 |
#define | TEMPHUM13_CMD_TRIG_HUMI_MEAS_HOLD 0xE5 |
#define | TEMPHUM13_CMD_TRIG_TEMP_MEAS_NOHOLD 0xF3 |
#define | TEMPHUM13_CMD_TRIG_HUMI_MEAS_NOHOLD 0xF5 |
#define | TEMPHUM13_CMD_WRITE_USER_REG 0xE6 |
#define | TEMPHUM13_CMD_READ_USER_REG 0xE7 |
#define | TEMPHUM13_CMD_SOFT_RESET 0xFE |
#define | TEMPHUM13_HEATER_ENABLE 0x01 |
#define | TEMPHUM13_HEATER_DISABLE 0x00 |
#define | TEMPHUM13_RESOLUTION_8 0x01 |
#define | TEMPHUM13_RESOLUTION_10 0x80 |
#define | TEMPHUM13_RESOLUTION_11 0x81 |
#define | TEMPHUM13_RESOLUTION_12 0x00 |
#define | TEMPHUM13_OTP_DISABLE 0x01 |
#define | TEMPHUM13_OTP_ENABLE 0x00 |
Functions | |
void | temphum13_cfg_setup (temphum13_cfg_t *cfg) |
Config Object Initialization function. | |
TEMPHUM13_RETVAL | temphum13_init (temphum13_t *ctx, temphum13_cfg_t *cfg) |
Initialization function. | |
void | temphum13_default_cfg (temphum13_t *ctx) |
Click Default Configuration function. | |
void | temphum13_generic_write (temphum13_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | temphum13_generic_read (temphum13_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
float | temphum13_get_temperature (temphum13_t *ctx) |
Get temperature value. | |
float | temphum13_get_humidity (temphum13_t *ctx) |
Get humidity value. | |
uint8_t | temphum13_get_user_register (temphum13_t *ctx) |
Get user register value. | |
void | temphum13_set_user_register (temphum13_t *ctx, uint8_t register_content) |
Set user register. | |
void | temphum13_soft_reset (temphum13_t *ctx) |
Software reset. | |
uint8_t | temphum13_enable_heater (temphum13_t *ctx, uint8_t enable_heater) |
Enable heater. | |
uint8_t | temphum13_change_resolution (temphum13_t *ctx, uint8_t meas_res) |
Change measurement resolution. | |
uint8_t | temphum13_disable_otp_reload (temphum13_t *ctx, uint8_t disable_otp_rel) |
Disable OTP. | |
This file contains API for TempHum 13 Click driver.