temphum4 2.0.0.0
|
This file contains API for Temp&Hum 4 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 | temphum4_t |
Click ctx object definition. More... | |
struct | temphum4_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | temphum4_cfg_setup (temphum4_cfg_t *cfg) |
Config Object Initialization function. | |
TEMPHUM4_RETVAL | temphum4_init (temphum4_t *ctx, temphum4_cfg_t *cfg) |
Initialization function. | |
void | temphum4_default_cfg (temphum4_t *ctx) |
Click Default Configuration function. | |
void | temphum4_generic_write (temphum4_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | temphum4_generic_read (temphum4_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | temphum4_set_mode (temphum4_t *ctx, uint8_t value) |
Set device mode function. | |
uint16_t | temphum4_get_manifacturer_id (temphum4_t *ctx) |
Get manufacturer's id. | |
uint16_t | temphum4_get_device_id (temphum4_t *ctx) |
Get device id. | |
void | temphum4_configuration (temphum4_t *ctx, uint16_t conf_data) |
Set device configuration function. | |
float | temphum4_get_temperature (temphum4_t *ctx) |
Get temperature function. | |
float | temphum4_get_humidity (temphum4_t *ctx) |
Get humidity function. | |
This file contains API for Temp&Hum 4 Click driver.