![]() |
SparkFun GM-X02B Arduino Library
v1.0.1
An Arduino library for the SparkFun Qwiic MEMS gas sensor breakouts built on the Winsen GM-x02B sensor family
|
Implementation file for the SparkFun Winsen GM-X02B MEMS Gas Sensor Driver. More...
Functions | |
| const sfe_gmx02b_part_t * | sfe_gmx02b_partInfo (sfe_gmx02b_sensor_t sensor) |
| Get the descriptor for a family member. | |
| const char * | sfe_gmx02b_partName (sfe_gmx02b_sensor_t sensor) |
| Get a printable part name. | |
| const char * | sfe_gmx02b_targetGas (sfe_gmx02b_sensor_t sensor) |
| Get a printable target gas description. | |
Variables | |
| static const sfe_gmx02b_part_t | kGMParts [GM_PART_COUNT] |
| Per-part descriptor table, one row per GM-x02B variant in sfe_gmx02b_sensor_t order. | |
Implementation file for the SparkFun Winsen GM-X02B MEMS Gas Sensor Driver.
Implements sfDevGMX02B: register-level access to the onboard ADC101C021, the load-resistor divider math, the nine-row per-part descriptor table, and the direction-normalized gas response that lets one API serve both reducing-gas parts (Rs falls with gas) and the GM-102B (Rs rises).
SPDX-License-Identifier: MIT
| const sfe_gmx02b_part_t * sfe_gmx02b_partInfo | ( | sfe_gmx02b_sensor_t | sensor | ) |
Get the descriptor for a family member.
| sensor | The sensor variant. |
sensor is not a valid variant. | const char * sfe_gmx02b_partName | ( | sfe_gmx02b_sensor_t | sensor | ) |
Get a printable part name.
| sensor | The sensor variant. |
| const char * sfe_gmx02b_targetGas | ( | sfe_gmx02b_sensor_t | sensor | ) |
Get a printable target gas description.
| sensor | The sensor variant. |
|
static |
Per-part descriptor table, one row per GM-x02B variant in sfe_gmx02b_sensor_t order.