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