Function xensiv_pasco2_set_alarm_threshold(const xensiv_pasco2_t *, uint16_t)¶
Defined in File xensiv_pasco2.h
Function Documentation¶
-
int32_t xensiv_pasco2_set_alarm_threshold(const xensiv_pasco2_t *dev, uint16_t val)¶
Sets the alarm threshold.
- Parameters
dev – [in] Pointer to the XENSIV™ PAS CO2 sensor device
val – [in] New alarm threshold value to apply
- Returns
XENSIV_PASCO2_OK if setting the alarm threshold was successful; an error indicating what went wrong otherwise