Function xensiv_pas_gas_get_measurement_status(const xensiv_pas_gas_t *, xensiv_pas_gas_meas_status_t *)

Function Documentation

int32_t xensiv_pas_gas_get_measurement_status(const xensiv_pas_gas_t *dev, xensiv_pas_gas_meas_status_t *status)

Gets the measurement status of the sensor device. Used to check if a new GAS concentration value is available to be read (status.b.drdy) using xensiv_pas_gas_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 GAS sensor device

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

Returns:

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