Function xensiv_pasco2_set_reg(const xensiv_pasco2_t *, uint8_t, const uint8_t *, uint8_t)¶
Defined in File xensiv_pasco2.h
Function Documentation¶
-
int32_t xensiv_pasco2_set_reg(const xensiv_pasco2_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 CO2 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_PASCO2_OK if writing to the register was successful; an error indicating what went wrong otherwise