#[unsafe(no_mangle)]pub extern "C" fn pamoja_power_plan_new(
active_us: u64,
saver_us: u64,
critical_us: u64,
) -> PamojaPowerPlanExpand description
Creates a power plan from its three work intervals, with default thresholds.
The defaults enter PamojaPowerMode::Saver below 50% charge and
PamojaPowerMode::Critical below 20%.
§Arguments
active_us- the interval at a healthy charge, in microseconds.saver_us- the longer interval used to conserve, in microseconds.critical_us- the longest interval, in microseconds.
§Returns
The power plan.