nRF Connect SDK Bare Metal API 2.0.99
Loading...
Searching...
No Matches

◆ ble_qwr_init()

uint32_t ble_qwr_init ( struct ble_qwr * qwr,
const struct ble_qwr_config * qwr_config )

#include <ble_qwr.h>

Function for initializing the Queued Writes module.

Call this function in the main entry of your application to initialize the Queued Writes module. It must be called only once with a given Queued Writes structure.

Parameters
[out]qwrQueued Writes structure. This structure must be supplied by the application. It is initialized by this function and is later used to identify the particular Queued Writes instance.
[in]qwr_configConfiguration structure.
Return values
NRF_SUCCESSIf the Queued Writes module was initialized successfully.
NRF_ERROR_NULLIf qwr or qwr_init is NULL.
NRF_ERROR_INVALID_STATEIf the given qwr instance has already been initialized.