Skip to main content

pamoja_power_plan_interval_us

Function pamoja_power_plan_interval_us 

Source
#[unsafe(no_mangle)]
pub extern "C" fn pamoja_power_plan_interval_us( plan: PamojaPowerPlan, soc: f32, ) -> u64
Expand description

Returns the work interval a plan calls for at a state of charge.

§Arguments

  • plan - the power plan.
  • soc - the battery state of charge, from 0.0 through 1.0.

§Returns

The interval in microseconds.