|
temphum27 2.2.0
|
This file contains API for TempHum 27 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 | temphum27_t |
| TempHum 27 Click context object. More... | |
| struct | temphum27_cfg_t |
| TempHum 27 Click configuration object. More... | |
Enumerations | |
| enum | temphum27_return_value_t { TEMPHUM27_OK = 0 , TEMPHUM27_ERROR = -1 } |
| TempHum 27 Click return value data. More... | |
Functions | |
| void | temphum27_cfg_setup (temphum27_cfg_t *cfg) |
| TempHum 27 configuration object setup function. | |
| err_t | temphum27_init (temphum27_t *ctx, temphum27_cfg_t *cfg) |
| TempHum 27 initialization function. | |
| err_t | temphum27_write_reg (temphum27_t *ctx, uint8_t reg, uint8_t data_in) |
| TempHum 27 write register function. | |
| err_t | temphum27_read_reg (temphum27_t *ctx, uint8_t reg, uint8_t *data_out) |
| TempHum 27 read register function. | |
| err_t | temphum27_read_data_hold (temphum27_t *ctx, float *temp, float *hum) |
| TempHum 27 read data (hold mode) function. | |
| err_t | temphum27_read_data_no_hold (temphum27_t *ctx, float *temp, float *hum) |
| TempHum 27 read data (no hold mode) function. | |
| err_t | temphum27_start_periodic_meas (temphum27_t *ctx, uint8_t freq) |
| TempHum 27 start periodic measurement function. | |
| err_t | temphum27_stop_periodic_meas (temphum27_t *ctx) |
| TempHum 27 stop periodic measurement function. | |
| err_t | temphum27_read_data_periodic (temphum27_t *ctx, float *temp, float *hum) |
| TempHum 27 read data in periodic mode function. | |
| err_t | temphum27_read_data_periodic_al (temphum27_t *ctx, float *temp, float *hum, uint8_t *alert) |
| TempHum 27 read data and alert in periodic mode function. | |
| err_t | temphum27_read_sensor_id (temphum27_t *ctx, uint32_t *sensor_id) |
| TempHum 27 read sensor ID function. | |
| void | temphum27_enable_device (temphum27_t *ctx) |
| TempHum 27 enable device function. | |
| void | temphum27_disable_device (temphum27_t *ctx) |
| TempHum 27 disable device function. | |
| void | temphum27_reset_device (temphum27_t *ctx) |
| TempHum 27 reset device function. | |
| uint8_t | temphum27_get_alert_pin (temphum27_t *ctx) |
| TempHum 27 get alert pin function. | |
This file contains API for TempHum 27 Click Driver.