Function xensiv_pasco2_get_result(const xensiv_pasco2_t *, uint16_t *)¶
Defined in File xensiv_pasco2.h
Function Documentation¶
-
int32_t xensiv_pasco2_get_result(const xensiv_pasco2_t *dev, uint16_t *val)¶
Gets the current CO2 ppm values from the sensor device.
- Parameters
dev – [in] Pointer to the XENSIV™ PAS CO2 sensor device
val – [out] Pointer to populate with the CO2 ppm value
- Returns
XENSIV_PASCO2_OK if obtaining the current CO2 value successful; an error indicating what went wrong otherwise