RA Flexible Software Package Documentation
Release v5.7.0
|
|
Interface for ZMOD4XXX Middleware functions.
The ZMOD4XXX interface provides ZMOD4XXX functionality.
Data Structures | |
struct | rm_zmod4xxx_callback_args_t |
struct | rm_zmod4xxx_raw_data_t |
struct | rm_zmod4xxx_iaq_1st_data_t |
struct | rm_zmod4xxx_iaq_2nd_data_t |
struct | rm_zmod4xxx_odor_data_t |
struct | rm_zmod4xxx_sulfur_odor_data_t |
struct | rm_zmod4xxx_oaq_1st_data_t |
struct | rm_zmod4xxx_oaq_2nd_data_t |
struct | rm_zmod4xxx_raq_data_t |
struct | rm_zmod4xxx_rel_iaq_data_t |
struct | rm_zmod4xxx_pbaq_data_t |
struct | rm_zmod4xxx_no2_o3_data_t |
struct | rm_zmod4xxx_cfg_t |
struct | rm_zmod4xxx_api_t |
struct | rm_zmod4xxx_instance_t |
Typedefs | |
typedef void | rm_zmod4xxx_ctrl_t |
Enumerations | |
enum | rm_zmod4xxx_event_t |
enum | rm_zmod4xxx_sulfur_odor_t |
struct rm_zmod4xxx_callback_args_t |
ZMOD4XXX sensor API callback parameter definition
struct rm_zmod4xxx_raw_data_t |
ZMOD4XXX raw data structure
struct rm_zmod4xxx_iaq_1st_data_t |
struct rm_zmod4xxx_iaq_2nd_data_t |
ZMOD4XXX IAQ 2nd gen data structure
struct rm_zmod4xxx_odor_data_t |
struct rm_zmod4xxx_sulfur_odor_data_t |
ZMOD4XXX Sulfur-Odor structure
Data Fields | ||
---|---|---|
float | rmox[9] | MOx resistance. |
float | intensity | odor intensity rating ranges from 0.0 to 5.0 for sulfur lib |
rm_zmod4xxx_sulfur_odor_t | odor | sulfur_odor classification for lib |
struct rm_zmod4xxx_oaq_1st_data_t |
struct rm_zmod4xxx_oaq_2nd_data_t |
ZMOD4XXX OAQ 2nd gen data structure
struct rm_zmod4xxx_raq_data_t |
struct rm_zmod4xxx_rel_iaq_data_t |
struct rm_zmod4xxx_pbaq_data_t |
ZMOD4XXX PBAQ data structure
struct rm_zmod4xxx_no2_o3_data_t |
ZMOD4XXX NO2 O3 data structure
struct rm_zmod4xxx_cfg_t |
ZMOD4XXX configuration block
Data Fields | |
rm_comms_instance_t const * | p_comms_instance |
Pointer to Communications Middleware instance. | |
void const * | p_irq_instance |
Pointer to IRQ instance. | |
void const * | p_context |
Pointer to the user-provided context. | |
void const * | p_extend |
Pointer to extended configuration by instance of interface. | |
void(* | p_comms_callback )(rm_zmod4xxx_callback_args_t *p_args) |
I2C Communications callback. | |
void(* | p_irq_callback )(rm_zmod4xxx_callback_args_t *p_args) |
IRQ callback. | |
struct rm_zmod4xxx_api_t |
ZMOD4XXX APIs
fsp_err_t(* rm_zmod4xxx_api_t::open) (rm_zmod4xxx_ctrl_t *const p_ctrl, rm_zmod4xxx_cfg_t const *const p_cfg) |
Open sensor.
[in] | p_ctrl | Pointer to control structure. |
[in] | p_cfg | Pointer to configuration structure. |
fsp_err_t(* rm_zmod4xxx_api_t::measurementStart) (rm_zmod4xxx_ctrl_t *const p_ctrl) |
Start measurement
[in] | p_ctrl | Pointer to control structure. |
fsp_err_t(* rm_zmod4xxx_api_t::measurementStop) (rm_zmod4xxx_ctrl_t *const p_ctrl) |
Stop measurement
[in] | p_ctrl | Pointer to control structure. |
fsp_err_t(* rm_zmod4xxx_api_t::statusCheck) (rm_zmod4xxx_ctrl_t *const p_ctrl) |
Read status of the sensor
[in] | p_ctrl | Pointer to control structure. |
fsp_err_t(* rm_zmod4xxx_api_t::read) (rm_zmod4xxx_ctrl_t *const p_ctrl, rm_zmod4xxx_raw_data_t *const p_raw_data) |
Read ADC data.
[in] | p_ctrl | Pointer to control structure. |
[in] | p_raw_data | Pointer to raw data structure. |
fsp_err_t(* rm_zmod4xxx_api_t::iaq1stGenDataCalculate) (rm_zmod4xxx_ctrl_t *const p_ctrl, rm_zmod4xxx_raw_data_t *const p_raw_data, rm_zmod4xxx_iaq_1st_data_t *const p_zmod4xxx_data) |
Calculate IAQ 1st Gen. values from ADC data.
[in] | p_ctrl | Pointer to control structure. |
[in] | p_raw_data | Pointer to raw data. |
[in] | p_zmod4xxx_data | Pointer to ZMOD4XXXX data structure. |
fsp_err_t(* rm_zmod4xxx_api_t::iaq2ndGenDataCalculate) (rm_zmod4xxx_ctrl_t *const p_ctrl, rm_zmod4xxx_raw_data_t *const p_raw_data, rm_zmod4xxx_iaq_2nd_data_t *const p_zmod4xxx_data) |
Calculate IAQ 2nd Gen. values from ADC data.
[in] | p_ctrl | Pointer to control structure. |
[in] | p_raw_data | Pointer to raw data. |
[in] | p_zmod4xxx_data | Pointer to ZMOD4XXXX data structure. |
fsp_err_t(* rm_zmod4xxx_api_t::odorDataCalculate) (rm_zmod4xxx_ctrl_t *const p_ctrl, rm_zmod4xxx_raw_data_t *const p_raw_data, rm_zmod4xxx_odor_data_t *const p_zmod4xxx_data) |
Calculate Odor values from ADC data.
[in] | p_ctrl | Pointer to control structure. |
[in] | p_raw_data | Pointer to raw data. |
[in] | p_zmod4xxx_data | Pointer to ZMOD4XXXX data structure. |
fsp_err_t(* rm_zmod4xxx_api_t::sulfurOdorDataCalculate) (rm_zmod4xxx_ctrl_t *const p_ctrl, rm_zmod4xxx_raw_data_t *const p_raw_data, rm_zmod4xxx_sulfur_odor_data_t *const p_zmod4xxx_data) |
Calculate Sulfur Odor values from ADC data.
[in] | p_ctrl | Pointer to control structure. |
[in] | p_raw_data | Pointer to raw data. |
[in] | p_zmod4xxx_data | Pointer to ZMOD4XXXX data structure. |
fsp_err_t(* rm_zmod4xxx_api_t::oaq1stGenDataCalculate) (rm_zmod4xxx_ctrl_t *const p_ctrl, rm_zmod4xxx_raw_data_t *const p_raw_data, rm_zmod4xxx_oaq_1st_data_t *const p_zmod4xxx_data) |
Calculate OAQ 1st Gen. values from ADC data.
[in] | p_ctrl | Pointer to control structure. |
[in] | p_raw_data | Pointer to raw data. |
[in] | p_zmod4xxx_data | Pointer to ZMOD4XXXX data structure. |
fsp_err_t(* rm_zmod4xxx_api_t::oaq2ndGenDataCalculate) (rm_zmod4xxx_ctrl_t *const p_ctrl, rm_zmod4xxx_raw_data_t *const p_raw_data, rm_zmod4xxx_oaq_2nd_data_t *const p_zmod4xxx_data) |
Calculate OAQ 2nd Gen. values from ADC data.
[in] | p_ctrl | Pointer to control structure. |
[in] | p_raw_data | Pointer to raw data. |
[in] | p_zmod4xxx_data | Pointer to ZMOD4XXXX data structure. |
fsp_err_t(* rm_zmod4xxx_api_t::raqDataCalculate) (rm_zmod4xxx_ctrl_t *const p_ctrl, rm_zmod4xxx_raw_data_t *const p_raw_data, rm_zmod4xxx_raq_data_t *const p_zmod4xxx_data) |
Calculate RAQ values from ADC data.
[in] | p_ctrl | Pointer to control structure. |
[in] | p_raw_data | Pointer to raw data. |
[in] | p_zmod4xxx_data | Pointer to ZMOD4XXXX data structure. |
fsp_err_t(* rm_zmod4xxx_api_t::relIaqDataCalculate) (rm_zmod4xxx_ctrl_t *const p_ctrl, rm_zmod4xxx_raw_data_t *const p_raw_data, rm_zmod4xxx_rel_iaq_data_t *const p_zmod4xxx_data) |
Calculate Relative IAQ values from ADC data.
[in] | p_ctrl | Pointer to control structure. |
[in] | p_raw_data | Pointer to raw data. |
[in] | p_zmod4xxx_data | Pointer to ZMOD4XXXX data structure. |
fsp_err_t(* rm_zmod4xxx_api_t::pbaqDataCalculate) (rm_zmod4xxx_ctrl_t *const p_ctrl, rm_zmod4xxx_raw_data_t *const p_raw_data, rm_zmod4xxx_pbaq_data_t *const p_zmod4xxx_data) |
Calculate PBAQ values from ADC data.
[in] | p_ctrl | Pointer to control structure. |
[in] | p_raw_data | Pointer to raw data. |
[in] | p_zmod4xxx_data | Pointer to ZMOD4XXXX data structure. |
fsp_err_t(* rm_zmod4xxx_api_t::no2O3DataCalculate) (rm_zmod4xxx_ctrl_t *const p_ctrl, rm_zmod4xxx_raw_data_t *const p_raw_data, rm_zmod4xxx_no2_o3_data_t *const p_zmod4xxx_data) |
Calculate NO2 O3 values from ADC data.
[in] | p_ctrl | Pointer to control structure. |
[in] | p_raw_data | Pointer to raw data. |
[in] | p_zmod4xxx_data | Pointer to ZMOD4XXXX data structure. |
fsp_err_t(* rm_zmod4xxx_api_t::temperatureAndHumiditySet) (rm_zmod4xxx_ctrl_t *const p_ctrl, float temperature, float humidity) |
Set temperature and humidity.
[in] | p_ctrl | Pointer to control structure. |
[in] | temperature | Temperature (deg C). |
[in] | humidity | Humidity (percent). |
fsp_err_t(* rm_zmod4xxx_api_t::deviceErrorCheck) (rm_zmod4xxx_ctrl_t *const p_ctrl) |
Check device error event.
[in] | p_ctrl | Pointer to control structure. |
fsp_err_t(* rm_zmod4xxx_api_t::close) (rm_zmod4xxx_ctrl_t *const p_ctrl) |
Close the sensor
[in] | p_ctrl | Pointer to control structure. |
struct rm_zmod4xxx_instance_t |
ZMOD4XXX instance
Data Fields | ||
---|---|---|
rm_zmod4xxx_ctrl_t * | p_ctrl |
Pointer to the control structure for this instance |
rm_zmod4xxx_cfg_t const * | p_cfg |
Pointer to the configuration structure for this instance |
rm_zmod4xxx_api_t const * | p_api |
Pointer to the API structure for this instance |
typedef void rm_zmod4xxx_ctrl_t |
ZMOD4xxx Control block. Allocate an instance specific control block to pass into the API calls.
enum rm_zmod4xxx_event_t |
Sulfur-Odor status