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