Function xensiv_pasco2_clear_status(const xensiv_pasco2_t *, uint8_t)¶
Defined in File xensiv_pasco2.h
Function Documentation¶
-
int32_t xensiv_pasco2_clear_status(const xensiv_pasco2_t *dev, uint8_t mask)¶
Clears the sensor device status bits.
- Parameters
dev – [in] Pointer to the XENSIV™ PAS CO2 sensor device
mask – [in] ORed combination of the following values:
XENSIV_PASCO2_REG_SENS_STS_ICCER_CLR_MSK Clears the ICCER status sticky bit
XENSIV_PASCO2_REG_SENS_STS_ORVS_CLR_MSK Clears the ORVS status sticky bit
XENSIV_PASCO2_REG_SENS_STS_ORTMP_CLR_MSK Clears the ORTMP status sticky bit
- Returns
XENSIV_PASCO2_OK if the status bits clearing was successful; an error indicating what went wrong otherwise