Function xensiv_pas_gas_get_reg(const xensiv_pas_gas_t *, uint8_t, uint8_t *, uint8_t)
Defined in File xensiv_pas_gas.h
Function Documentation
-
int32_t xensiv_pas_gas_get_reg(const xensiv_pas_gas_t *dev, uint8_t reg_addr, uint8_t *data, uint8_t len)
Reads from the sensor device into the given data buffer. Reads from the sensor register map sensor starting at register address into the given data buffer.
- Parameters:
dev – [in] Pointer to the XENSIV™ PAS GAS sensor device
reg_addr – [in] Start register address
data – [out] Pointer to the data buffer to store the register values of the sensor
len – [in] Number of bytes of data to be read
- Returns:
XENSIV_PAS_GAS_OK if reading from the register was successful; an error indicating what went wrong otherwise