nRF Connect SDK API
3.3.99
Loading...
Searching...
No Matches
pdn.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 PDN_H__
8
#define PDN_H__
9
10
#include <
modem/lte_lc.h
>
11
12
#ifdef __cplusplus
13
extern
"C"
{
14
#endif
15
16
/* Internal PDN module functions */
17
18
int
pdn_ctx_create
(uint8_t *cid);
19
int
pdn_ctx_configure
(uint8_t cid,
const
char
*apn,
enum
lte_lc_pdn_family
family,
20
struct
lte_lc_pdn_pdp_context_opts
*opt);
21
int
pdn_ctx_auth_set
(uint8_t cid,
enum
lte_lc_pdn_auth
method,
22
const
char
*user,
const
char
*password);
23
int
pdn_ctx_destroy
(uint8_t cid);
24
int
pdn_activate
(uint8_t cid,
int
*esm,
enum
lte_lc_pdn_family
*family);
25
int
pdn_deactivate
(uint8_t cid);
26
int
pdn_id_get
(uint8_t cid);
27
int
pdn_dynamic_info_get
(uint8_t cid,
struct
lte_lc_pdn_dynamic_info
*pdn_info);
28
int
pdn_default_ctx_events_enable
(
void
);
29
int
pdn_default_ctx_events_disable
(
void
);
30
int
pdn_ctx_default_apn_get
(
char
*buf,
size_t
len);
31
32
#if defined(CONFIG_LTE_LC_PDN_ESM_STRERROR) || defined(__DOXYGEN__)
33
const
char
*
pdn_esm_strerror
(
int
reason);
34
#endif
35
36
#ifdef __cplusplus
37
}
38
#endif
39
40
#endif
/* PDN_H__ */
lte_lc_pdn_family
lte_lc_pdn_family
PDN address family.
Definition
lte_lc.h:1649
lte_lc_pdn_auth
lte_lc_pdn_auth
Authentication method.
Definition
lte_lc.h:1707
lte_lc.h
pdn_ctx_configure
int pdn_ctx_configure(uint8_t cid, const char *apn, enum lte_lc_pdn_family family, struct lte_lc_pdn_pdp_context_opts *opt)
pdn_deactivate
int pdn_deactivate(uint8_t cid)
pdn_ctx_create
int pdn_ctx_create(uint8_t *cid)
pdn_activate
int pdn_activate(uint8_t cid, int *esm, enum lte_lc_pdn_family *family)
pdn_esm_strerror
const char * pdn_esm_strerror(int reason)
pdn_default_ctx_events_disable
int pdn_default_ctx_events_disable(void)
pdn_default_ctx_events_enable
int pdn_default_ctx_events_enable(void)
pdn_dynamic_info_get
int pdn_dynamic_info_get(uint8_t cid, struct lte_lc_pdn_dynamic_info *pdn_info)
pdn_id_get
int pdn_id_get(uint8_t cid)
pdn_ctx_auth_set
int pdn_ctx_auth_set(uint8_t cid, enum lte_lc_pdn_auth method, const char *user, const char *password)
pdn_ctx_default_apn_get
int pdn_ctx_default_apn_get(char *buf, size_t len)
pdn_ctx_destroy
int pdn_ctx_destroy(uint8_t cid)
lte_lc_pdn_dynamic_info
PDN connection dynamic information structure.
Definition
lte_lc.h:1691
lte_lc_pdn_pdp_context_opts
Additional Packet Data Protocol (PDP) context configuration options.
Definition
lte_lc.h:1661
lib
lte_link_control
include
modules
pdn.h
Generated on Wed Jun 10 2026 17:22:24 for nRF Connect SDK API by
1.12.0