TEMP_MAXMIN_TO_REG
data->temp_max[nr] = clamp_val(TEMP_MAXMIN_TO_REG(val), 0, 255);
data->temp_min[nr] = clamp_val(TEMP_MAXMIN_TO_REG(val), 0, 255);