Function xensiv_pasco2_get_scratch_pad(const xensiv_pasco2_t *, uint8_t *)

Function Documentation

int32_t xensiv_pasco2_get_scratch_pad(const xensiv_pasco2_t *dev, uint8_t *val)

Reads from the scratchpad register.

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

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

Returns

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