nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
location_core.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2021 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef LOCATION_CORE_H
8#define LOCATION_CORE_H
9
47
50 char method_string[28];
51 int (*init)(void);
52 int (*validate_params)(const struct location_method_config *config);
53 int (*location_get)(const struct location_request_info *request);
54 int (*cancel)();
55 int (*timeout)();
56#if defined(CONFIG_LOCATION_DATA_DETAILS)
57 void (*details_get)(struct location_data_details *details);
58#endif
59};
60
65
66void location_core_event_cb(const struct location_data *location);
69#if defined(CONFIG_LOCATION_SERVICE_EXTERNAL) && defined(CONFIG_NRF_CLOUD_AGNSS)
70void location_core_event_cb_agnss_request(const struct nrf_modem_gnss_agnss_data_frame *request);
71#endif
72#if defined(CONFIG_LOCATION_SERVICE_EXTERNAL) && defined(CONFIG_NRF_CLOUD_PGPS)
74#endif
75
76#if defined(CONFIG_LOCATION_SERVICE_EXTERNAL)
79 enum location_ext_result result,
80 struct location_data *location);
81#endif
82
83void location_core_config_log(const struct location_config *config);
84void location_core_timer_start(int32_t timeout);
85struct k_work_q *location_core_work_queue_get(void);
86
87#endif /* LOCATION_CORE_H */
location_ext_result
Definition location.h:128
location_method
Definition location.h:39
int location_core_validate_params(const struct location_config *config)
void location_core_event_cb_error(void)
int location_core_cancel(void)
int location_core_init(void)
void location_core_event_cb_timeout(void)
void location_core_event_cb_cloud_location_request(struct location_data_cloud *request)
void location_core_event_cb_agnss_request(const struct nrf_modem_gnss_agnss_data_frame *request)
void location_core_cloud_location_ext_result_set(enum location_ext_result result, struct location_data *location)
void location_core_timer_start(int32_t timeout)
struct k_work_q * location_core_work_queue_get(void)
void location_core_config_log(const struct location_config *config)
int location_core_location_get(const struct location_config *config)
void location_core_event_cb_pgps_request(const struct gps_pgps_request *request)
void location_core_event_cb(const struct location_data *location)
P-GPS request type.
Definition nrf_cloud_pgps.h:86
Definition location.h:443
Definition location.h:521
Definition location.h:286
Definition location.h:215
Definition location.h:241
Definition location.h:298
Definition location.h:357
char method_string[28]
Definition location_core.h:50
enum location_method method
Definition location_core.h:49
int(* init)(void)
Definition location_core.h:51
int(* cancel)()
Definition location_core.h:54
void(* details_get)(struct location_data_details *details)
Definition location_core.h:57
int(* timeout)()
Definition location_core.h:55
int(* validate_params)(const struct location_method_config *config)
Definition location_core.h:52
int(* location_get)(const struct location_request_info *request)
Definition location_core.h:53
Definition location_core.h:48
Definition location.h:507
bool execute_fallback
Definition location_core.h:36
struct location_event_data current_event_data
Definition location_core.h:27
int current_method
Definition location_core.h:30
const struct location_cellular_config * cellular
Definition location_core.h:13
int64_t elapsed_time_method_start_timestamp
Definition location_core.h:39
const struct location_wifi_config * wifi
Definition location_core.h:12
int64_t timeout_uptime
Definition location_core.h:45
uint8_t methods_count
Definition location_core.h:19
const struct location_gnss_config * gnss
Definition location_core.h:14
int current_method_index
Definition location_core.h:33
struct location_config config
Definition location_core.h:17
enum location_method methods[CONFIG_LOCATION_METHODS_LIST_SIZE]
Definition location_core.h:24
Definition location_core.h:11
Definition location.h:486