Lines Matching refs:term
191 …uint64_t *term = (uint64_t *)heap_caps_calloc(term_num, sizeof(uint64_t), MALLOC_CAP_INTERNAL | MA… in get_reading_error() local
192 if (term == NULL) { in get_reading_error()
197 memset(term, 0, term_num * sizeof(uint64_t)); in get_reading_error()
201 term[0] = variable_prev * coeff / (*param->coeff)[atten][0][1]; in get_reading_error()
202 error = (int32_t)(term[0] * (*param->sign)[atten][0]); in get_reading_error()
207 term[i] = variable_current * coeff; in get_reading_error()
208 ESP_LOGV(TAG, "big coef is %llu, big term%d is %llu, coef_id is %d", coeff, i, term[i], i); in get_reading_error()
209 term[i] = term[i] / (*param->coeff)[atten][i][1]; in get_reading_error()
210 error += (int32_t)(term[i] * (*param->sign)[atten][i]); in get_reading_error()
212 ESP_LOGV(TAG, "term%d is %llu, error is %"PRId32, i, term[i], error); in get_reading_error()
216 heap_caps_free(term); in get_reading_error()