nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
nrf_provisioning.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
12#ifndef NRF_PROVISIONING_H__
13#define NRF_PROVISIONING_H__
14
15#include <stddef.h>
16
17#include <modem/lte_lc.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23
36typedef int (*nrf_provisioning_mmode_cb_t)(enum lte_lc_func_mode new_mode, void *user_data);
37
48 void *user_data;
49};
50
63};
64
72typedef void (*nrf_provisioning_event_cb_t)(enum nrf_provisioning_event event, void *user_data);
73
84 void *user_data;
85};
86
99 struct nrf_provisioning_dm_change *dmode);
100
108
115
118#ifdef __cplusplus
119}
120#endif
121
122#endif /* NRF_PROVISIONING_H__ */
lte_lc_func_mode
Definition: lte_lc.h:153
int nrf_provisioning_init(struct nrf_provisioning_mm_change *mmode, struct nrf_provisioning_dm_change *dmode)
Initializes the provisioning library and registers callback handlers.
int(* nrf_provisioning_mmode_cb_t)(enum lte_lc_func_mode new_mode, void *user_data)
Callback to request a modem state change, being it powering off, flight mode etc.
Definition: nrf_provisioning.h:36
void nrf_provisioning_set_interval(int interval)
Set provisioning interval.
nrf_provisioning_event
nrf_provisioning callback events
Definition: nrf_provisioning.h:56
@ NRF_PROVISIONING_EVENT_STOP
Definition: nrf_provisioning.h:60
@ NRF_PROVISIONING_EVENT_DONE
Definition: nrf_provisioning.h:62
@ NRF_PROVISIONING_EVENT_START
Definition: nrf_provisioning.h:58
void(* nrf_provisioning_event_cb_t)(enum nrf_provisioning_event event, void *user_data)
Called when provisioning state changes.
Definition: nrf_provisioning.h:72
int nrf_provisioning_trigger_manually(void)
Starts provisioning immediately.
void * user_data
Definition: nrf_provisioning.h:84
nrf_provisioning_event_cb_t cb
Definition: nrf_provisioning.h:83
Holds the callback to be called once provisioning state changes together with data set by the callbac...
Definition: nrf_provisioning.h:82
void * user_data
Definition: nrf_provisioning.h:48
nrf_provisioning_mmode_cb_t cb
Definition: nrf_provisioning.h:47
Holds the callback used for querying permission from the application to proceed when modem's state ch...
Definition: nrf_provisioning.h:46