Skip to main content

pamoja_radio_duty_cycle_ready

Function pamoja_radio_duty_cycle_ready 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_radio_duty_cycle_ready( guard: *const PamojaRadioDutyCycle, now_us: u64, ) -> bool
Expand description

Reports whether a transmission may start now.

§Arguments

  • guard - the duty-cycle guard.
  • now_us - the current time in microseconds on the caller’s clock.

§Returns

true once the silence the last transmission owed has passed, or false if guard is null.

§Safety

guard must be a live handle from pamoja_radio_duty_cycle_new, or null.