temphum20
2.0.0.0
|
This file contains API for TempHum 20 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 | temphum20_t |
TempHum 20 Click context object. More... | |
struct | temphum20_cfg_t |
TempHum 20 Click configuration object. More... | |
Enumerations | |
enum | temphum20_return_value_t { TEMPHUM20_OK = 0, TEMPHUM20_ERROR = -1 } |
TempHum 20 Click return value data. More... | |
Functions | |
void | temphum20_cfg_setup (temphum20_cfg_t *cfg) |
TempHum 20 configuration object setup function. More... | |
err_t | temphum20_init (temphum20_t *ctx, temphum20_cfg_t *cfg) |
TempHum 20 initialization function. More... | |
err_t | temphum20_default_cfg (temphum20_t *ctx) |
TempHum 20 default configuration function. More... | |
err_t | temphum20_write_data (temphum20_t *ctx, uint8_t *tx_buf, uint8_t tx_len) |
TempHum 20 I2C writing function. More... | |
err_t | temphum20_read_data (temphum20_t *ctx, uint8_t *rx_buf, uint8_t rx_len) |
TempHum 20 I2C reading function. More... | |
void | temphum20_set_en_pin (temphum20_t *ctx, uint8_t state) |
TempHum 20 set EN pin function. More... | |
uint8_t | temphum20_get_int_pin (temphum20_t *ctx) |
TempHum 20 get INT pin function. More... | |
uint8_t | temphum20_get_alarm_high_pin (temphum20_t *ctx) |
TempHum 20 get alarm high pin function. More... | |
uint8_t | temphum20_get_alarm_low_pin (temphum20_t *ctx) |
TempHum 20 get alarm low pin function. More... | |
void | temphum20_reset_device (temphum20_t *ctx) |
TempHum 20 reset device function. More... | |
err_t | temphum20_write_command (temphum20_t *ctx, uint8_t cmd_byte, uint16_t cmd_data) |
TempHum 20 write command function. More... | |
err_t | temphum20_get_measurement (temphum20_t *ctx, float *temp, float *hum) |
TempHum 20 get measurement function. More... | |
err_t | temphum20_set_operating_mode (temphum20_t *ctx, uint8_t op_mode) |
TempHum 20 set operating mode function. More... | |
This file contains API for TempHum 20 Click Driver.