Function xensiv_pas_gas_get_id(const xensiv_pas_gas_t *, xensiv_pas_gas_id_t *)
Defined in File xensiv_pas_gas.h
Function Documentation
-
int32_t xensiv_pas_gas_get_id(const xensiv_pas_gas_t *dev, xensiv_pas_gas_id_t *id)
Gets the sensor device product and version ID.
Note
: Refer to the register map description of the XENSIV™ PAS GAS device for detailed information on the ID format
- Parameters:
dev – [in] Pointer to the XENSIV™ PAS GAS sensor device
id – [out] Pointer to populate with the sensor device product and version ID
- Returns:
XENSIV_PAS_GAS_OK if reading the product id was successful; an error indicating what went wrong otherwise