![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| 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.
| [out] | qwr | Queued 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_config | Configuration structure. |
| NRF_SUCCESS | If the Queued Writes module was initialized successfully. |
| NRF_ERROR_NULL | If qwr or qwr_init is NULL. |
| NRF_ERROR_INVALID_STATE | If the given qwr instance has already been initialized. |