#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_lorawan_firmware_image(
manager: *const PamojaLorawanFirmware,
out_status: *mut u8,
out_next_version: *mut u32,
out_has_next_version: *mut u8,
) -> PamojaStatusExpand description
Says what firmware upgrade image the device is holding.
§Arguments
manager- the manager.out_status- receivesPAMOJA_LORAWAN_IMAGE_NONE,PAMOJA_LORAWAN_IMAGE_CORRUPT,PAMOJA_LORAWAN_IMAGE_WRONG_HARDWAREorPAMOJA_LORAWAN_IMAGE_VALID.out_next_version- receives what the device would boot into, for an image it can install.out_has_next_version- receives1when there is one.
§Returns
PamojaStatus::Ok on success. Every out pointer may be null.
§Errors
Returns PamojaStatus::InvalidArgument for a null handle.
§Safety
manager must be a live handle and every non-null out pointer writable.