Function xensiv_pas_gas_set_offset_compensation(const xensiv_pas_gas_t *, uint16_t)

Function Documentation

int32_t xensiv_pas_gas_set_offset_compensation(const xensiv_pas_gas_t *dev, uint16_t val)

Sets the offset compensation value Defines the reference value used for ABOC and force calibration.

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

  • val[in] New pressure calibration value to apply

Returns:

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