no22 2.0.0.0
no22.h File Reference

This file contains API for NO2 2 Click driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"

Go to the source code of this file.

Data Structures

struct  no22_t
 Click ctx object definition. More...
 
struct  no22_cfg_t
 Click configuration structure definition. More...
 

Macros

#define NO22_MAP_MIKROBUS(cfg, mikrobus)
 
#define NO22_RETVAL   uint8_t
 
#define NO22_OK   0x00
 
#define NO22_INIT_ERROR   0xFF
 
#define NO22_PIN_STATE_LOW   0
 
#define NO22_PIN_STATE_HIGH   1
 
#define NO22_DEVICE_ERROR   0xFF
 
#define NO22_DEVICE_OK   0xAA
 

Functions

void no22_cfg_setup (no22_cfg_t *cfg)
 Config Object Initialization function.
 
NO22_RETVAL no22_init (no22_t *ctx, no22_cfg_t *cfg)
 Initialization function.
 
uint16_t no22_read_data (no22_t *ctx)
 Function for reading ADC data.
 
float no22_get_ppb (no22_t *ctx)
 Function for reading ppb data.
 
uint8_t no22_set_pht_state (no22_t *ctx, uint8_t state)
 Function for setting pht pin.
 

Detailed Description

This file contains API for NO2 2 Click driver.