nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
ntn.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef NTN_H__
8#define NTN_H__
9
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25#include <stdint.h>
26#include <stdbool.h>
27
57
64
66 uint32_t accuracy;
67};
68
72struct ntn_evt {
75
77 union {
80 };
81};
82
88typedef void (*ntn_evt_handler_t)(const struct ntn_evt *evt);
89
96
110int ntn_location_set(double latitude, double longitude, float altitude, uint32_t validity);
111
121
122#ifdef __cplusplus
123}
124#endif
125
130#endif /* NTN_H__ */
int ntn_location_set(double latitude, double longitude, float altitude, uint32_t validity)
Set location to the modem.
int ntn_location_invalidate(void)
Invalidate location.
ntn_evt_type
NTN event types.
Definition ntn.h:31
@ NTN_EVT_LOCATION_REQUEST
Definition ntn.h:55
void ntn_register_handler(ntn_evt_handler_t handler)
Register an event handler.
void(* ntn_evt_handler_t)(const struct ntn_evt *evt)
Event handler prototype.
Definition ntn.h:88
struct ntn_location_request location_request
Definition ntn.h:79
enum ntn_evt_type type
Definition ntn.h:74
NTN event.
Definition ntn.h:72
uint32_t accuracy
Definition ntn.h:66
bool requested
Definition ntn.h:63
Location update request.
Definition ntn.h:61