Skip to main content

pamoja_duty_cycle_fraction

Function pamoja_duty_cycle_fraction 

Source
#[unsafe(no_mangle)]
pub extern "C" fn pamoja_duty_cycle_fraction( duty: PamojaDutyCycle, ) -> f32
Expand description

Returns the share of a period a duty cycle spends awake.

§Arguments

  • duty - the duty cycle.

§Returns

The fraction from 0.0 through 1.0, or 0.0 if the period is zero.