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
13extern "C" {
14#endif
15
16/* Internal PDN module functions */
17
18int pdn_ctx_create(uint8_t *cid);
19int pdn_ctx_configure(uint8_t cid, const char *apn, enum lte_lc_pdn_family family,
20 struct lte_lc_pdn_pdp_context_opts *opt);
21int pdn_ctx_auth_set(uint8_t cid, enum lte_lc_pdn_auth method,
22 const char *user, const char *password);
23int pdn_ctx_destroy(uint8_t cid);
24int pdn_activate(uint8_t cid, int *esm, enum lte_lc_pdn_family *family);
25int pdn_deactivate(uint8_t cid);
26int pdn_id_get(uint8_t cid);
27int pdn_dynamic_info_get(uint8_t cid, struct lte_lc_pdn_dynamic_info *pdn_info);
30int pdn_ctx_default_apn_get(char *buf, size_t len);
31
32#if defined(CONFIG_LTE_LC_PDN_ESM_STRERROR) || defined(__DOXYGEN__)
33const char *pdn_esm_strerror(int reason);
34#endif
35
36#ifdef __cplusplus
37}
38#endif
39
40#endif /* PDN_H__ */
lte_lc_pdn_family
PDN address family.
Definition lte_lc.h:1649
lte_lc_pdn_auth
Authentication method.
Definition lte_lc.h:1707
int pdn_ctx_configure(uint8_t cid, const char *apn, enum lte_lc_pdn_family family, struct lte_lc_pdn_pdp_context_opts *opt)
int pdn_deactivate(uint8_t cid)
int pdn_ctx_create(uint8_t *cid)
int pdn_activate(uint8_t cid, int *esm, enum lte_lc_pdn_family *family)
const char * pdn_esm_strerror(int reason)
int pdn_default_ctx_events_disable(void)
int pdn_default_ctx_events_enable(void)
int pdn_dynamic_info_get(uint8_t cid, struct lte_lc_pdn_dynamic_info *pdn_info)
int pdn_id_get(uint8_t cid)
int pdn_ctx_auth_set(uint8_t cid, enum lte_lc_pdn_auth method, const char *user, const char *password)
int pdn_ctx_default_apn_get(char *buf, size_t len)
int pdn_ctx_destroy(uint8_t cid)
PDN connection dynamic information structure.
Definition lte_lc.h:1691
Additional Packet Data Protocol (PDP) context configuration options.
Definition lte_lc.h:1661