ZMOD4510 Nitrogen Dioxide and Ozone Firmware Documentation |

Macros | Variables
zmod4510_config_no2_o3.h File Reference

This is the configuration for ZMOD4510 module - no2_o3 library. More...

Go to the source code of this file.

## Macros
#define | INIT 0
#define | MEASUREMENT 1
#define | ZMOD4510_PID 0x6320
#define | ZMOD4510_I2C_ADDR 0x33
#define | ZMOD4510_PROD_DATA_LEN 10
#define | ZMOD4510_ADC_DATA_LEN (32)
#define | ZMOD4510_NO2_O3_SAMPLE_TIME (6000U)
#define | ZMOD4XXX_H_ADDR 0x40
#define | ZMOD4XXX_D_ADDR 0x50
#define | ZMOD4XXX_M_ADDR 0x60
#define | ZMOD4XXX_S_ADDR 0x68
#define | RMOX3_OFFSET (15 * 2)

## Variables
uint8_t | data_set_4510_init []
uint8_t | data_set_4510_no2_o3 []
zmod4xxx_conf | zmod_no2_o3_sensor_cfg []

## Variable Documentation

## ◆ data_set_4510_init

uint8_t data_set_4510_init[]

Initial value:
= {
0x00, 0x50,
0x00, 0x28, 0xC3, 0xE3,
0x00, 0x00, 0x80, 0x40}

## ◆ data_set_4510_no2_o3

uint8_t data_set_4510_no2_o3[]

Initial value:
= {
0x00, 0x50, 0xFF, 0x06,
0xFE, 0xA2, 0xFE, 0x3E,
0x00, 0x10, 0x00, 0x52,
0x3F, 0x66, 0x00, 0x42,
0x23, 0x03,
0x00, 0x00, 0x02, 0x41,
0x00, 0x41, 0x00, 0x41,
0x00, 0x49, 0x00, 0x50,
0x02, 0x42, 0x00, 0x42,
0x00, 0x42, 0x00, 0x4A,
0x00, 0x50, 0x02, 0x43,
0x00, 0x43, 0x00, 0x43,
0x00, 0x43, 0x80, 0x5B,
}

## ◆ zmod_no2_o3_sensor_cfg

zmod4xxx_conf zmod_no2_o3_sensor_cfg[]

Initial value:
= {
[INIT] = {
.start = 0x80,
.h = { .addr = ZMOD4XXX_H_ADDR, .len = 2, .data_buf = &data_set_4510_init[0]},
.d = { .addr = ZMOD4XXX_D_ADDR, .len = 2, .data_buf = &data_set_4510_init[2]},
.m = { .addr = ZMOD4XXX_M_ADDR, .len = 2, .data_buf = &data_set_4510_init[4]},
.s = { .addr = ZMOD4XXX_S_ADDR, .len = 4, .data_buf = &data_set_4510_init[6]},
.r = { .addr = 0x97, .len = 4},
},
[MEASUREMENT] = {
.start = 0x80,
.h = {.addr = ZMOD4XXX_H_ADDR, .len = 8, .data_buf = &data_set_4510_no2_o3[0]},
.d = {.addr = ZMOD4XXX_D_ADDR, .len = 8, .data_buf = &data_set_4510_no2_o3[8]},
.m = {.addr = ZMOD4XXX_M_ADDR, .len = 2, .data_buf = &data_set_4510_no2_o3[16]},
.s = {.addr = ZMOD4XXX_S_ADDR, .len = 32, .data_buf = &data_set_4510_no2_o3[18]},
.r = {.addr = 0x97, .len = 32},
.prod_data_len = ZMOD4510_PROD_DATA_LEN,
},
}