#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_lorawan_clock_sync_heard(
sync: *mut PamojaLorawanClockSync,
payload: *const u8,
payload_len: usize,
out_correction: *mut i32,
out_has_correction: *mut u8,
out_more: *mut u8,
out_resync: *mut u8,
out_answer_due: *mut u8,
) -> PamojaStatusExpand description
Reads a downlink on the clock port and acts on it, section 3.2.
§Arguments
sync- the package.payload- what arrived on portPAMOJA_LORAWAN_CLOCK_PORT.payload_len- its length.out_correction- receives the seconds to add to the device’s clock.out_has_correction- receives1when there was one.out_more- receives1when another correction is coming.out_resync- receives how many requests a resynchronization command asked for, or 0.out_answer_due- receives1when the device now owes an answer.
§Returns
PamojaStatus::Ok on success. Every out pointer may be null.
§Errors
Returns PamojaStatus::Codec for a message this package cannot read.
§Safety
sync must be a live handle, payload must point to payload_len readable bytes, and
every non-null out pointer must be writable.