Function xensiv_pas_gas_set_scratch_pad(const xensiv_pas_gas_t *, uint8_t)

Function Documentation

int32_t xensiv_pas_gas_set_scratch_pad(const xensiv_pas_gas_t *dev, uint8_t val)

Writes to the scratchpad register.

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

  • val[in] New scratchpad register value to apply

Returns:

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