pub unsafe extern "C" fn nrf_modem_gnss_event_handler_set(
    handler: nrf_modem_gnss_event_handler_type_t
) -> i32
Expand description

Sets the GNSS event handler.

@details This function is used to set the function that handles events from GNSS.

@note The event handler is executed in interrupt context so a lot of processing inside the handler may have performance implications and side effects. It’s recommended to use the handler only for signaling or re-scheduling processing to a separate thread. Data can be read at any time while GNSS is running, the events are only signaling that the data has been updated.

  • handler - Pointer to the event handler function or NULL.

Returns 0 on success.