nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ NRF_MODEM_LIB_ON_DFU_RES

#define NRF_MODEM_LIB_ON_DFU_RES (   name,
  _callback,
  _context 
)

#include <include/modem/nrf_modem_lib.h>

Value:
static void _callback(int dfu_res, void *ctx); \
STRUCT_SECTION_ITERABLE(nrf_modem_lib_dfu_cb, nrf_modem_dfu_hook_##name) = { \
.callback = _callback, \
.context = _context, \
};
Modem library dfu callback struct.
Definition: nrf_modem_lib.h:95

Define a callback for DFU result nrf_modem_lib_init calls.

Note
The NRF_MODEM_LIB_ON_DFU_RES callback can be used to subscribe to the result of a modem DFU operation.
Parameters
nameCallback name
_callbackCallback function name
_contextUser-defined context for the callback