Function xensiv_pasco2_get_measurement_status(const xensiv_pasco2_t *, xensiv_pasco2_meas_status_t *)

Function Documentation

int32_t xensiv_pasco2_get_measurement_status(const xensiv_pasco2_t *dev, xensiv_pasco2_meas_status_t *status)

Gets the measurement status of the sensor device. Used to check if a new CO2 concentration value is available to be read (status.b.drdy) using xensiv_pasco2_get_result Used to check if an interrupt is asserted (status.b.int_sts). Used to check if an alarm is triggered (status.b.alarm)

Parameters
  • dev[in] Pointer to the XENSIV™ PAS CO2 sensor device

  • status[out] Pointer to populate with the sensor device measurement status

Returns

XENSIV_PASCO2_OK if getting the measurement was successful; an error indicating what went wrong otherwise