Function xensiv_pas_gas_get_scratch_pad(const xensiv_pas_gas_t *, uint8_t *)

Function Documentation

int32_t xensiv_pas_gas_get_scratch_pad(const xensiv_pas_gas_t *dev, uint8_t *val)

Reads from the scratchpad register.

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

  • val[out] Pointer to populate with the sensor device scratchpad register value

Returns:

XENSIV_PAS_GAS_OK if reading from the scratch pad register was successful; an error indicating what went wrong otherwise