no2 2.0.0.0
|
This file contains API for NO 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 | no2_t |
Click ctx object definition. More... | |
struct | no2_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | no2_cfg_setup (no2_cfg_t *cfg) |
Config Object Initialization function. | |
NO2_RETVAL | no2_init (no2_t *ctx, no2_cfg_t *cfg) |
Initialization function. | |
void | no2_default_cfg (no2_t *ctx) |
Click Default Configuration function. | |
void | no2_generic_write (no2_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | no2_generic_read (no2_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | no2_write_byte (no2_t *ctx, uint8_t reg, uint8_t dev_data) |
Function writes one byte to the register. | |
uint8_t | no2_read_byte (no2_t *ctx, uint8_t reg) |
Function reads one byte from the register. | |
void | no2_enable (no2_t *ctx, uint8_t state) |
Device Enable function. | |
uint16_t | no2_read_adc (no2_t *ctx) |
Function for read ADC sensor data. | |
float | no2_get_no_2_ppm (no2_t *ctx) |
Get NO2 Data function. | |
void | no2_wait_ready (no2_t *ctx) |
Function waits until I2C is ready for the next command. | |
This file contains API for NO 2 Click driver.