Lines Matching refs:target_value
1300 std::uint8_t compute_frontend_gain_wolfson(float value, float target_value)
1310 target_value).
1315 {target_value} = {input} * 208 / (283 - {PGA})
1319 {PGA} = 283 * (1 - {value} / {target_value})
1321 float gain = value / target_value;
1326 std::uint8_t compute_frontend_gain_lide_80(float value, float target_value)
1328 int code = static_cast<int>((target_value / value) * 12);
1332 std::uint8_t compute_frontend_gain_wolfson_gl841(float value, float target_value)
1336 float inv_gain = target_value / value;
1342 std::uint8_t compute_frontend_gain_wolfson_gl846_gl847_gl124(float value, float target_value)
1346 float inv_gain = target_value / value;
1352 std::uint8_t compute_frontend_gain_analog_devices(float value, float target_value)
1363 {target_value} = {input} * 6 / (1 + 5 * ( 63 - {PGA}) / 63 ) )
1367 {PGA} = (378 / 5) * ({target_value} - {value} / {target_value})
1369 int code = static_cast<int>((378.0f / 5.0f) * ((target_value - value) / target_value));
1373 std::uint8_t compute_frontend_gain(float value, float target_value,
1378 return compute_frontend_gain_wolfson(value, target_value);
1380 return compute_frontend_gain_analog_devices(value, target_value);
1382 return compute_frontend_gain_lide_80(value, target_value);
1384 return compute_frontend_gain_wolfson_gl841(value, target_value);
1388 return compute_frontend_gain_wolfson_gl846_gl847_gl124(value, target_value);