/* Set preset parameters for fluorescence decay. Helper function for cn0503_fluo_decay_measure/calibrate.  */
void cn0503_fluo_set_presets(struct cn0503_impulse_response *impresp, uint8_t preset)
/* Set preset parameters for fluorescence decay. Helper function for cn0503_fluo_decay_measure/calibrate.  */
void cn0503_fluo_set_presets(struct cn0503_impulse_response *impresp, uint8_t preset)
{
	if (preset == IMPPRESET) {
		impresp->sample_period = 2;
		impresp->method = IMP;
	} else if (preset == TIAPRESET) {
		impresp->sample_period = 1;
		impresp->method = TIA;
	} else if (preset == SSIPRESET) {
		impresp->sample_period = 0.25;
		impresp->method = SSI;
	} else if (preset == MAXRESPRESET) {
		impresp->sample_period = 0.03125;
		impresp->average_length = 25;
		impresp->method = SSI;
	}
	impresp->first_sample_offset = 0;
}