Function energy_sample_energy(energy_t, float, uint32_t)

Function Documentation

void energy_sample_energy(energy_t handle, float power, uint32_t time)

Updates energy counting with given data.

Parameters
  • handle: energy_t instance
  • power: Sampled power value (in Watt)
  • time: Time at which the measurement was made (in milliseconds)