temphum21 2.0.0.0
|
This file contains API for TempHum 21 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 | temphum21_t |
TempHum 21 Click context object. More... | |
struct | temphum21_cfg_t |
TempHum 21 Click configuration object. More... | |
Enumerations | |
enum | temphum21_return_value_t { TEMPHUM21_OK = 0 , TEMPHUM21_ERROR = -1 } |
TempHum 21 Click return value data. More... | |
Functions | |
void | temphum21_cfg_setup (temphum21_cfg_t *cfg) |
TempHum 21 configuration object setup function. | |
err_t | temphum21_init (temphum21_t *ctx, temphum21_cfg_t *cfg) |
TempHum 21 initialization function. | |
err_t | temphum21_default_cfg (temphum21_t *ctx) |
TempHum 21 default configuration function. | |
err_t | temphum21_request_measurement (temphum21_t *ctx) |
TempHum 21 request measurement function. | |
err_t | temphum21_read_measurement (temphum21_t *ctx, float *temperature, float *humidity) |
TempHum 21 read measurement function. | |
uint8_t | temphum21_get_all_pin (temphum21_t *ctx) |
TempHum 21 get all pin function. | |
uint8_t | temphum21_get_alh_pin (temphum21_t *ctx) |
TempHum 21 get alh pin function. | |
void | temphum21_enable_device (temphum21_t *ctx) |
TempHum 21 enable device function. | |
void | temphum21_disable_device (temphum21_t *ctx) |
TempHum 21 disable device function. | |
err_t | temphum21_enter_command_mode (temphum21_t *ctx) |
TempHum 21 enter command mode function. | |
err_t | temphum21_exit_command_mode (temphum21_t *ctx) |
TempHum 21 exit command mode function. | |
err_t | temphum21_eeprom_read (temphum21_t *ctx, uint8_t address, uint8_t *status, uint16_t *data_out) |
TempHum 21 eeprom read function. | |
err_t | temphum21_eeprom_write (temphum21_t *ctx, uint8_t address, uint16_t data_in) |
TempHum 21 eeprom write function. | |
This file contains API for TempHum 21 Click Driver.