environment3 2.0.0.0
|
This file contains API for Environment 3 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | environment3_field_data_t |
Environment 3 field data structure. More... | |
struct | environment3_calibration_data_t |
Environment 3 calibration data structure. More... | |
struct | environment3_tph_settings_t |
Environment 3 TPH settings structure. More... | |
struct | environment3_gas_settings_t |
Environment 3 gas settings structure. More... | |
struct | environment3_s |
Environment 3 Click context object. More... | |
struct | environment3_cfg_t |
Environment 3 Click configuration object. More... | |
Typedefs | |
typedef err_t(* | environment3_master_io_t) (struct environment3_s *, uint8_t, uint8_t *, uint8_t) |
Environment 3 Click driver interface. | |
typedef struct environment3_s | environment3_t |
Environment 3 Click context object. | |
Enumerations | |
enum | environment3_drv_t { ENVIRONMENT3_DRV_SEL_SPI , ENVIRONMENT3_DRV_SEL_I2C } |
Environment 3 Click driver selector. More... | |
enum | environment3_return_value_t { ENVIRONMENT3_OK = 0 , ENVIRONMENT3_ERROR = -1 } |
Environment 3 Click return value data. More... | |
Functions | |
void | environment3_cfg_setup (environment3_cfg_t *cfg) |
Environment 3 configuration object setup function. | |
void | environment3_drv_interface_selection (environment3_cfg_t *cfg, environment3_drv_t drv_sel) |
Environment 3 driver interface setup function. | |
err_t | environment3_init (environment3_t *ctx, environment3_cfg_t *cfg) |
Environment 3 initialization function. | |
err_t | environment3_default_cfg (environment3_t *ctx) |
Environment 3 default configuration function. | |
err_t | environment3_generic_write (environment3_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Environment 3 data writing function. | |
err_t | environment3_generic_read (environment3_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Environment 3 data reading function. | |
err_t | environment3_write_byte (environment3_t *ctx, uint8_t reg, uint8_t data_in) |
Environment 3 single data writing function. | |
uint8_t | environment3_read_byte (environment3_t *ctx, uint8_t reg) |
Environment 3 single data reading function. | |
int8_t | environment3_check_id (environment3_t *ctx) |
Environment 3 check device ID function. | |
uint8_t | environment3_get_device_id (environment3_t *ctx) |
Environment 3 get device ID function. | |
int8_t | environment3_soft_reset (environment3_t *ctx) |
Environment 3 soft reset function. | |
int8_t | environment3_get_all_data (environment3_t *ctx, float *temp, float *hum, float *pres, uint32_t *gas) |
Environment 3 get all data function. | |
float | environment3_get_temperature (environment3_t *ctx) |
Environment 3 get temperature data function. | |
float | environment3_get_humidity (environment3_t *ctx) |
Environment 3 get humidity data function. | |
float | environment3_get_pressure (environment3_t *ctx) |
Environment 3 get pressure data function. | |
float | environment3_get_gas_resistance (environment3_t *ctx) |
Environment 3 get gas resistance data function. | |
int8_t | environment3_get_regs (environment3_t *ctx, uint8_t reg, uint8_t *data_out, uint16_t len) |
Environment 3 read data from register address function. | |
int8_t | environment3_set_regs (environment3_t *ctx, uint8_t *reg, uint8_t *data_in, uint8_t len) |
Environment 3 write data to registers function. | |
int8_t | environment3_enable_heater (environment3_t *ctx, uint8_t state) |
Environment 3 enable heater function. | |
int8_t | environment3_set_heater_conf (environment3_t *ctx, environment3_gas_settings_t *conf) |
Environment 3 set heater configuration function. | |
int8_t | environment3_set_sensor_conf (environment3_t *ctx, environment3_tph_settings_t *conf) |
Environment 3 set sensor configuration function. | |
int8_t | environment3_set_operating_mode (environment3_t *ctx, uint8_t op_mode) |
Environment 3 set operating mode function. | |
int8_t | environment3_get_operating_mode (environment3_t *ctx) |
Environment 3 get operating mode function. | |
This file contains API for Environment 3 Click Driver.
typedef err_t(* environment3_master_io_t) (struct environment3_s *, uint8_t, uint8_t *, uint8_t) |
Environment 3 Click driver interface.
Definition of driver interface of Environment 3 Click driver. Driver serial interface.
typedef struct environment3_s environment3_t |
Environment 3 Click context object.
Context object definition of Environment 3 Click driver.
enum environment3_drv_t |