Function xensiv_pasco2_clear_measurement_status(const xensiv_pasco2_t *, uint8_t)¶
Defined in File xensiv_pasco2.h
Function Documentation¶
-
int32_t xensiv_pasco2_clear_measurement_status(const xensiv_pasco2_t *dev, uint8_t mask)¶
Clears the measurement status of the sensor device.
- Parameters
dev – [in] Pointer to the XENSIV™ PAS CO2 sensor device
mask – [in] ORed combination of the following values:
XENSIV_PASCO2_REG_MEAS_STS_INT_STS_CLR_MSK Clears the sticky bit MEAS_STS.INT_STS and forces the INT pin to inactive level
XENSIV_PASCO2_REG_MEAS_STS_ALARM_CLR_MSK Clears the sticky bit MEAS_STS.ALARM
- Returns
XENSIV_PASCO2_OK if clearing the measurement status selected bits was successful; an error indicating what went wrong otherwise