Function xensiv_pas_gas_a2l_aboc_prefill(const xensiv_pas_gas_t *, uint8_t)
Defined in File xensiv_pas_gas_a2l.h
Function Documentation
-
int32_t xensiv_pas_gas_a2l_aboc_prefill(const xensiv_pas_gas_t *dev, uint8_t prefill)
Configures the ABOC prefill value.
- Parameters:
dev – [in] Pointer to a XENSIV™ PAS GAS A2L sensor device structure
prefill – [in] The number of hours to prefill the flash table from 0 to the maximum hours value. The maximum hours value is the ABOC cycle minus one hour. For example, if the ABOC cycle is set to 10 hours, the maximum prefill value is 9 hours.
- Returns:
XENSIV_PAS_GAS_OK if the configuration was successful; an error indicating what went wrong otherwise