nRF Connect SDK API 2.8.99
|
Public APIs for the Location library. More...
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <nrf_modem_gnss.h>
#include <net/nrf_cloud_pgps.h>
#include <modem/lte_lc.h>
#include <net/wifi_location_common.h>
Go to the source code of this file.
Data Structures | |
struct | location_datetime |
struct | location_data_details_gnss |
struct | location_data_details_cellular |
struct | location_data_details_wifi |
struct | location_data_details |
struct | location_data |
struct | location_data_error |
struct | location_data_unknown |
struct | location_data_fallback |
struct | location_data_cloud |
struct | location_event_data |
struct | location_gnss_config |
struct | location_cellular_config |
struct | location_wifi_config |
struct | location_method_config |
struct | location_config |
Typedefs | |
typedef void(* | location_event_handler_t) (const struct location_event_data *event_data) |
Event handler prototype. | |
Functions | |
int | location_handler_register (location_event_handler_t handler) |
int | location_handler_deregister (location_event_handler_t handler) |
int | location_init (location_event_handler_t handler) |
Initializes the library. | |
int | location_request (const struct location_config *config) |
Requests the current position or starts periodic position updates. | |
int | location_request_cancel (void) |
Cancels periodic position updates. | |
void | location_config_defaults_set (struct location_config *config, uint8_t methods_count, enum location_method *method_types) |
Sets the default values to a given configuration. | |
const char * | location_method_str (enum location_method method) |
Return location method as a string. | |
const struct location_data_details * | location_details_get (const struct location_event_data *event_data) |
Get location data details from the location event data. | |
int | location_agnss_data_process (const char *buf, size_t buf_len) |
Feed in A-GNSS data to be processed by library. | |
int | location_pgps_data_process (const char *buf, size_t buf_len) |
Feed in P-GPS data to be processed by library. | |
void | location_cloud_location_ext_result_set (enum location_ext_result result, struct location_data *location) |
Pass cloud location result to the library. | |
Public APIs for the Location library.