co23 2.1.0.0
|
This file contains API for CO2 3 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
#include "drv_uart.h"
Go to the source code of this file.
Data Structures | |
struct | co23_s |
CO2 3 Click context object. More... | |
struct | co23_cfg_t |
CO2 3 Click configuration object. More... | |
struct | co23_sens_status_t |
CO2 3 Click sens status object. More... | |
struct | co23_meas_cfg_t |
CO2 3 Click measurement configuration object. More... | |
struct | co23_meas_status_t |
CO2 3 Click measurement status object. More... | |
struct | co23_int_cfg_t |
CO2 3 Click interrupt configuration object. More... | |
Typedefs | |
typedef err_t(* | co23_master_io_t) (struct co23_s *, uint8_t, uint8_t *, uint8_t) |
CO2 3 Click driver interface. | |
typedef struct co23_s | co23_t |
CO2 3 Click context object. | |
Enumerations | |
enum | co23_drv_t { CO23_DRV_SEL_I2C , CO23_DRV_SEL_UART } |
CO2 3 Click driver selector. More... | |
enum | co23_soft_reset_value_t { CO23_CMD_SOFT_RESET = 0xA3 , CO23_CMD_RESET_ABOC = 0xBC , CO23_CMD_STEPWISE_FILTER_DIS = 0xDF , CO23_CMD_SAVE_FCS_CALIB_OFFSET = 0xCF , CO23_CMD_RESET_FCS = 0xFC , CO23_CMD_STEPWISE_FILTER_EN = 0xFE } |
CO2 3 Click soft reset command value data. More... | |
enum | co23_return_value_t { CO23_OK = 0 , CO23_ERROR = -1 } |
CO2 3 Click return value data. More... | |
Functions | |
void | co23_cfg_setup (co23_cfg_t *cfg) |
CO2 3 configuration object setup function. | |
void | co23_drv_interface_selection (co23_cfg_t *cfg, co23_drv_t drv_sel) |
CO2 3 driver interface setup function. | |
err_t | co23_init (co23_t *ctx, co23_cfg_t *cfg) |
CO2 3 initialization function. | |
err_t | co23_default_cfg (co23_t *ctx) |
CO2 3 default configuration function. | |
err_t | co23_generic_write (co23_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
CO2 3 I2C writing function. | |
err_t | co23_generic_read (co23_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
CO2 3 I2C reading function. | |
err_t | co23_get_device_id (co23_t *ctx, uint8_t *prod, uint8_t *rev) |
CO2 3 get device ID function. | |
err_t | co23_get_sens_status (co23_t *ctx, co23_sens_status_t *sens_status) |
CO2 3 get sensor status function. | |
err_t | co23_set_meas_rate (co23_t *ctx, uint16_t meas_rate_sec) |
CO2 3 set measurement rate function. | |
err_t | co23_get_meas_cfg (co23_t *ctx, co23_meas_cfg_t *meas_cfg) |
CO2 3 get measurement configuration function. | |
err_t | co23_set_meas_cfg (co23_t *ctx, co23_meas_cfg_t meas_cfg) |
CO2 3 set measurement configuration function. | |
err_t | co23_get_co2_ppm (co23_t *ctx, uint16_t *co2_ppm) |
CO2 3 get CO2 concentration function. | |
err_t | co23_get_meas_status (co23_t *ctx, co23_meas_status_t *meas_status) |
CO2 3 get measurement status function. | |
err_t | co23_get_int_cfg (co23_t *ctx, co23_int_cfg_t *int_cfg) |
CO2 3 get interrupt pin configuration function. | |
err_t | co23_set_int_cfg (co23_t *ctx, co23_int_cfg_t int_cfg) |
CO2 3 set interrupt pin configuration function. | |
err_t | co23_set_alarm_threshold (co23_t *ctx, uint16_t alarm_th_ppm) |
CO2 3 set alarm threshold function. | |
err_t | co23_set_pressure_ref (co23_t *ctx, uint16_t pressure_mbar) |
CO2 3 set alarm threshold function. | |
err_t | co23_set_calib_ref (co23_t *ctx, uint16_t calib_ppm) |
CO2 3 set calibration function. | |
err_t | co23_soft_reset_trigger (co23_t *ctx, co23_soft_reset_value_t reset_cmd) |
CO2 3 soft reset trigger function. | |
uint8_t | co23_get_pwo_pin (co23_t *ctx) |
CO2 3 get PWM output function. | |
uint8_t | co23_get_int_pin (co23_t *ctx) |
CO2 3 get interrupt function. | |
This file contains API for CO2 3 Click Driver.
typedef err_t(* co23_master_io_t) (struct co23_s *, uint8_t, uint8_t *, uint8_t) |
CO2 3 Click driver interface.
Definition of driver interface of CO2 3 Click driver. Driver serial interface.
CO2 3 Click context object.
Context object definition of CO2 3 Click driver.
enum co23_drv_t |
enum co23_return_value_t |