Function xensiv_pas_gas_a2l_set_dev_idx

Function Documentation

int32_t xensiv_pas_gas_a2l_set_dev_idx(const xensiv_pas_gas_t *dev, uint8_t dev_id_index)

Sets the device index.

Parameters:
  • dev[in] Pointer to a XENSIV™ PAS GAS A2L sensor device structure

  • dev_id_index[in] New device index to set

Returns:

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