nRF Connect SDK API 2.8.99
|
Data Structures | |
struct | pdn_pdp_opt |
Additional PDP Context configuration options. More... | |
Typedefs | |
typedef void(* | pdn_event_handler_t) (uint8_t cid, enum pdn_event event, int reason) |
Enumerations | |
enum | pdn_fam { PDN_FAM_IPV4 = 0 , PDN_FAM_IPV6 = 1 , PDN_FAM_IPV4V6 = 2 , PDN_FAM_NONIP = 3 } |
PDN family. More... | |
enum | pdn_event { PDN_EVENT_CNEC_ESM , PDN_EVENT_ACTIVATED , PDN_EVENT_DEACTIVATED , PDN_EVENT_IPV6_UP , PDN_EVENT_IPV6_DOWN , PDN_EVENT_NETWORK_DETACH , PDN_EVENT_APN_RATE_CONTROL_ON , PDN_EVENT_APN_RATE_CONTROL_OFF , PDN_EVENT_CTX_DESTROYED } |
PDN library event. More... | |
enum | pdn_auth { PDN_AUTH_NONE = 0 , PDN_AUTH_PAP = 1 , PDN_AUTH_CHAP = 2 } |
PDN authentication method. More... | |
Functions | |
int | pdn_ctx_create (uint8_t *cid, pdn_event_handler_t cb) |
Create a Packet Data Protocol (PDP) context. | |
int | pdn_ctx_configure (uint8_t cid, const char *apn, enum pdn_fam family, struct pdn_pdp_opt *opts) |
Configure a Packet Data Protocol context. | |
int | pdn_ctx_auth_set (uint8_t cid, enum pdn_auth method, const char *user, const char *password) |
Set PDN connection authentication parameters. | |
int | pdn_ctx_destroy (uint8_t cid) |
Destroy a Packet Data Protocol context. | |
int | pdn_activate (uint8_t cid, int *esm, enum pdn_fam *family) |
Activate a Packet Data Network (PDN) connection. | |
int | pdn_deactivate (uint8_t cid) |
Deactivate a Packet Data Network (PDN) connection. | |
int | pdn_id_get (uint8_t cid) |
Retrieve the PDN ID for a given PDP Context. | |
int | pdn_dynamic_params_get (uint8_t cid, struct in_addr *dns4_pri, struct in_addr *dns4_sec, unsigned int *ipv4_mtu) |
Retrieve dynamic parameters of a given PDP context. | |
int | pdn_default_apn_get (char *buf, size_t len) |
Retrieve the default Access Point Name (APN). | |
int | pdn_default_ctx_cb_reg (pdn_event_handler_t cb) |
Register a callback for events pertaining to the default PDP context (zero). | |
int | pdn_default_ctx_cb_dereg (pdn_event_handler_t cb) |
Deregister a callback for events pertaining to the default PDP context (zero). | |