Function xensiv_pas_gas_clear_status(const xensiv_pas_gas_t *, uint8_t)
Defined in File xensiv_pas_gas.h
Function Documentation
-
int32_t xensiv_pas_gas_clear_status(const xensiv_pas_gas_t *dev, uint8_t mask)
Clears the sensor device status bits.
- Parameters:
dev – [in] Pointer to the XENSIV™ PAS GAS sensor device
mask – [in] ORed combination of the following values:
XENSIV_PAS_GAS_REG_SENS_STS_ICCER_CLR_MSK Clears the ICCER status sticky bit
XENSIV_PAS_GAS_REG_SENS_STS_ORVS_CLR_MSK Clears the ORVS status sticky bit
XENSIV_PAS_GAS_REG_SENS_STS_ORTMP_CLR_MSK Clears the ORTMP status sticky bit
- Returns:
XENSIV_PAS_GAS_OK if the status bits clearing was successful; an error indicating what went wrong otherwise