nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ nrf_modem_gnss_event_handler_set()

int32_t nrf_modem_gnss_event_handler_set ( nrf_modem_gnss_event_handler_type_t  handler)

#include <nrf_modem/include/nrf_modem_gnss.h>

Sets the GNSS event handler.

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.
Parameters
[in]handlerPointer to the event handler function or NULL.
Return values
0on success.