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