#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_radio_duty_cycle_transmitted(
guard: *mut PamojaRadioDutyCycle,
started_us: u64,
link: PamojaLoraLink,
payload_len: usize,
) -> u64Expand description
Records a transmission and the silence it owes.
§Arguments
guard- the duty-cycle guard.started_us- when the transmission started, in microseconds on the caller’s clock.link- the settings the frame was sent with.payload_len- the payload length in bytes.
§Returns
The frame’s time on air in microseconds, or 0 if guard is null.
§Safety
guard must be a live handle from pamoja_radio_duty_cycle_new, or null.