co2 2.0.0.0
|
This file contains API for CO2 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 | co2_t |
CO2 Click context object. More... | |
struct | co2_cfg_t |
CO2 Click configuration object. More... | |
Enumerations | |
enum | co2_return_value_t { CO2_OK = 0 , CO2_ERROR = -1 , CO2_ERROR_SELF_TEST = -2 , CO2_ERROR_CRC = -3 } |
CO2 Click return value data. More... | |
Functions | |
void | co2_cfg_setup (co2_cfg_t *cfg) |
CO2 configuration object setup function. | |
err_t | co2_init (co2_t *ctx, co2_cfg_t *cfg) |
CO2 initialization function. | |
err_t | co2_default_cfg (co2_t *ctx) |
CO2 default configuration function. | |
err_t | co2_generic_write (co2_t *ctx, uint16_t reg, uint16_t *tx_buf, uint8_t tx_len) |
CO2 I2C writing function. | |
err_t | co2_generic_read (co2_t *ctx, uint16_t reg, uint16_t *rx_buf, uint8_t rx_len) |
CO2 I2C reading function. | |
err_t | co2_reset (co2_t *ctx) |
Reset device. | |
err_t | co2_get_id (co2_t *ctx) |
Read device and serial ID's. | |
err_t | co2_set_reference (co2_t *ctx, uint16_t humidity, uint16_t pressure) |
Set device refrence values for gas calculation. | |
err_t | co2_read_gas (co2_t *ctx, float *gas_concentration, float *temperature) |
Read CO2 concentration and temperature value. | |
err_t | co2_disable_crc (co2_t *ctx) |
Disable use of CRC. | |
This file contains API for CO2 Click Driver.
enum co2_return_value_t |