#[unsafe(no_mangle)]pub unsafe extern "C" fn phytrace_builder_set_power(
builder: *mut PhyTraceBuilderHandle,
soc_pct: f64,
voltage_v: f64,
current_a: f64,
temperature_c: f64,
is_charging: i32,
health_pct: f64,
) -> i32Expand description
Set the power domain on the builder.
Floating-point parameters use f64::NAN for “not set”.
is_charging: 1 = true, 0 = false, -1 = not set.
§Parameters
soc_pct— State of charge percentage (0-100), or NANvoltage_v— Battery voltage, or NANcurrent_a— Battery current in amps, or NANtemperature_c— Battery temperature in Celsius, or NANis_charging— 1/0/-1health_pct— State of health percentage (0-100), or NAN