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