nRF Connect SDK API
3.4.99
Toggle main menu visibility
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
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
25
#include <stdint.h>
26
#include <stdbool.h>
27
31
enum
ntn_evt_type
{
55
NTN_EVT_LOCATION_REQUEST
= 0,
56
};
57
61
struct
ntn_location_request
{
63
bool
requested
;
64
66
uint32_t
accuracy
;
67
};
68
72
struct
ntn_evt
{
74
enum
ntn_evt_type
type
;
75
77
union
{
79
struct
ntn_location_request
location_request
;
80
};
81
};
82
88
typedef
void (*
ntn_evt_handler_t
)(
const
struct
ntn_evt
*evt);
89
95
void
ntn_register_handler
(
ntn_evt_handler_t
handler);
96
110
int
ntn_location_set
(
double
latitude,
double
longitude,
float
altitude, uint32_t validity);
111
120
int
ntn_location_invalidate
(
void
);
121
122
#ifdef __cplusplus
123
}
124
#endif
125
129
130
#endif
/* NTN_H__ */
ntn_location_set
int ntn_location_set(double latitude, double longitude, float altitude, uint32_t validity)
Set location to the modem.
ntn_location_invalidate
int ntn_location_invalidate(void)
Invalidate location.
ntn_evt_type
ntn_evt_type
NTN event types.
Definition
ntn.h:31
NTN_EVT_LOCATION_REQUEST
@ NTN_EVT_LOCATION_REQUEST
Definition
ntn.h:55
ntn_register_handler
void ntn_register_handler(ntn_evt_handler_t handler)
Register an event handler.
ntn_evt_handler_t
void(* ntn_evt_handler_t)(const struct ntn_evt *evt)
Event handler prototype.
Definition
ntn.h:88
ntn_evt::location_request
struct ntn_location_request location_request
Definition
ntn.h:79
ntn_evt::type
enum ntn_evt_type type
Definition
ntn.h:74
ntn_evt
NTN event.
Definition
ntn.h:72
ntn_location_request::accuracy
uint32_t accuracy
Definition
ntn.h:66
ntn_location_request::requested
bool requested
Definition
ntn.h:63
ntn_location_request
Location update request.
Definition
ntn.h:61
include
modem
ntn.h
Generated on
for nRF Connect SDK API by
1.17.0