co_2
2.0.0.0
|
This file contains API for CO 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 | co2_t |
Click ctx object definition. More... | |
struct | co2_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | co2_cfg_setup (co2_cfg_t *cfg) |
Config Object Initialization function. More... | |
CO2_RETVAL | co2_init (co2_t *ctx, co2_cfg_t *cfg) |
Initialization function. More... | |
uint8_t | co2_generic_write (co2_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. More... | |
uint8_t | co2_generic_read (co2_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. More... | |
void | co2_wait_i2c_ready (co2_t *ctx) |
Generic read function. More... | |
void | co2_enable (co2_t *ctx, uint8_t state) |
Device Enable function. More... | |
void | co2_read_adc (co2_t *ctx, uint16_t *data_out) |
Read ADC Data function. More... | |
void | co2_get_co2_ppm (co2_t *ctx, float *co2_data) |
Get CO Data function. More... | |
This file contains API for CO 2 Click driver.