temphum2 2.0.0.0
|
This file contains API for Temp&Hum 2 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 | temphum2_t |
Click ctx object definition. More... | |
struct | temphum2_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | temphum2_cfg_setup (temphum2_cfg_t *cfg) |
Config Object Initialization function. | |
TEMPHUM2_RETVAL | temphum2_init (temphum2_t *ctx, temphum2_cfg_t *cfg) |
Initialization function. | |
void | temphum2_default_cfg (temphum2_t *ctx) |
Click Default Configuration function. | |
void | temphum2_generic_write (temphum2_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | temphum2_generic_read (temphum2_t *ctx, uint8_t *tx_buf, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint8_t | temphum2_read_firmware_revision (temphum2_t *ctx) |
This function for reads Firmware Revision. | |
void | temhum2_get_eletronic_id (temphum2_t *ctx, uint8_t *electronic_id) |
This function for reads Eletronic ID. | |
uint8_t | temphum2_get_query_device (temphum2_t *ctx) |
This function for reads Query Device. | |
void | temphum2_set_mode (uint8_t select_mode, uint8_t speed_mode) |
Functions for set measurement mode. | |
void | temphum2_get_measurement (temphum2_t *ctx, float *data_buffer) |
Functions for mesurement. | |
This file contains API for Temp&Hum 2 Click driver.