ZMOD4510 Nitrogen Dioxide and Ozone Firmware Documentation |

Macros | Functions
zmod4xxx.h File Reference
ZMOD4xxx Sensor API

zmod4xxx-API functions More...

Go to the source code of this file.

## Macros
#define | ZMOD4XXX_ADDR_PID (0x00)
#define | ZMOD4XXX_ADDR_CONF (0x20)
#define | ZMOD4XXX_ADDR_PROD_DATA (0x26)
#define | ZMOD4XXX_ADDR_CMD (0x93)
#define | ZMOD4XXX_ADDR_STATUS (0x94)
#define | ZMOD4XXX_ADDR_TRACKING (0x3A)
#define | ZMOD4XXX_LEN_PID (2)
#define | ZMOD4XXX_LEN_CONF (6)
#define | ZMOD4XXX_LEN_TRACKING (6)
#define | HSP_MAX (8)
#define | RSLT_MAX (32)
#define | STATUS_SEQUENCER_RUNNING_MASK (0x80)
#define | STATUS_SLEEP_TIMER_ENABLED_MASK (0x40)
#define | STATUS_ALARM_MASK (0x20)
#define | STATUS_LAST_SEQ_STEP_MASK (0x1F)
#define | STATUS_POR_EVENT_MASK (0x80)
#define | STATUS_ACCESS_CONFLICT_MASK (0x40)

## Functions
zmod4xxx_err | zmod4xxx_calc_factor (zmod4xxx_conf *conf, uint8_t *hsp, uint8_t *config)
| Calculate measurement settings. More...
float | zmod4xxx_calc_single_rmox (zmod4xxx_dev_t *dev, uint8_t *adc_result)
| Calculate mox resistance from ADC raw data. More...
zmod4xxx_err | zmod4xxx_calc_rmox (zmod4xxx_dev_t *dev, uint8_t *adc_result, float *rmox)
| Calculate mox resistance on array of results. More...
zmod4xxx_err | zmod4xxx_check_error_event (zmod4xxx_dev_t *dev)
| Check the error event of the device. More...
zmod4xxx_err | zmod4xxx_init_measurement (zmod4xxx_dev_t *dev)
| Initialize the sensor for corresponding measurement. More...
zmod4xxx_err | zmod4xxx_init_sensor (zmod4xxx_dev_t *dev)
| Initialize the sensor after power on. More...
zmod4xxx_err | zmod4xxx_null_ptr_check (zmod4xxx_dev_t *dev)
| Check if all function pointers are assigned. More...
zmod4xxx_err | zmod4xxx_prepare_sensor (zmod4xxx_dev_t *dev)
| High-level function to prepare sensor. More...
zmod4xxx_err | zmod4xxx_read_adc_result (zmod4xxx_dev_t *dev, uint8_t *adc_result)
| Read adc values from the sensor. More...
zmod4xxx_err | zmod4xxx_read_rmox (zmod4xxx_dev_t *dev, uint8_t *adc_result, float *rmox)
| High-level function to read rmox. More...
zmod4xxx_err | zmod4xxx_read_sensor_info (zmod4xxx_dev_t *dev)
| Read sensor parameter. More...
zmod4xxx_err | zmod4xxx_read_status (zmod4xxx_dev_t *dev, uint8_t *status)
| Read the status of the device. More...
zmod4xxx_err | zmod4xxx_read_tracking_number (zmod4xxx_dev_t *dev, uint8_t *track_num)
| Read tracking number of sensor. More...
zmod4xxx_err | zmod4xxx_start_measurement (zmod4xxx_dev_t *dev)
| Start the measurement. More...
zmod4xxx_err | zmod4xxx_start_measurement_at (zmod4xxx_dev_t *dev, uint8_t step)
| Start the measurement at an user-defined sequencer step. More...