environment2
2.0.0.0
|
This file contains API for Environment 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 | environment2_t |
Environment 2 Click context object. More... | |
struct | environment2_cfg_t |
Environment 2 Click configuration object. More... | |
Enumerations | |
enum | environment2_return_value_t { ENVIRONMENT2_OK = 0, ENVIRONMENT2_ERROR = -1 } |
Environment 2 Click return value data. More... | |
Functions | |
void | environment2_cfg_setup (environment2_cfg_t *cfg) |
Environment 2 configuration object setup function. More... | |
err_t | environment2_init (environment2_t *ctx, environment2_cfg_t *cfg) |
Environment 2 initialization function. More... | |
err_t | environment2_generic_write (environment2_t *ctx, uint8_t select_device, uint16_t cmd, uint8_t *tx_buf) |
Environment 2 I2C writing function. More... | |
err_t | environment2_generic_read (environment2_t *ctx, uint8_t select_device, uint16_t cmd, uint8_t *rx_buf) |
Environment 2 I2C reading function. More... | |
err_t | environment2_get_temp_hum (environment2_t *ctx, float *humidity, float *temperature) |
Environment 2 get temperature and relative humidity function. More... | |
err_t | environment2_get_air_quality (environment2_t *ctx, uint16_t *air_quality) |
Environment 2 get air quality data function. More... | |
uint16_t | environment2_sgp40_measure_test (environment2_t *ctx) |
Environment 2 SGP40 measurement test function. More... | |
err_t | environment2_sgp40_heater_off (environment2_t *ctx) |
Environment 2 heater off function. More... | |
err_t | environment2_sgp40_soft_reset (environment2_t *ctx) |
Environment 2 soft reset function. More... | |
This file contains API for Environment 2 Click Driver.