forked from nrfconnect/sdk-nrf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsupl_os_client.h
47 lines (40 loc) · 1.07 KB
/
supl_os_client.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* Copyright (c) 2019 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/
#ifndef SUPL_OS_CLIENT_H_
#define SUPL_OS_CLIENT_H_
#include <nrf_modem_gnss.h>
#include <supl_session.h>
/**
* @file supl_os_client.h
*
* @defgroup supl_os SUPL OS client
*
* @{
**/
/**
*
* @brief Start a SUPL session
*
* @param[in] agps_request This contain the information about the AGPS data
* that the GNSS module is requesting from the server.
*
* @return 0 SUPL session was successful.
* <0 SUPL session failed.
*/
int supl_session(const struct nrf_modem_gnss_agps_data_frame *const agps_request);
/**
* @brief Setup the API and the buffers required by
* the SUPL client library.
*
* @param[in] api Function pointers to the API required by SUPL client library
* to work.
*
* @return 0 SUPL client library was initialized successfully.
* <0 Failed to initialize the SUPL client library.
*/
int supl_init(const struct supl_api *const api);
/** @} */
#endif /* SUPL_OS_CLIENT_H_ */