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

◆ bm_storage_evt_dispatch()

void bm_storage_evt_dispatch ( const struct bm_storage * storage,
struct bm_storage_evt * evt )

#include <bm_storage.h>

Dispatch a storage event to the application's event handler.

When the event scheduler (CONFIG_BM_SCHEDULER) is enabled and the event is synchronous, the event is deferred for delivery in the main thread context. Otherwise, the event handler is invoked directly.

This function is intended for use by backend implementations.

Parameters
[in]storageThe storage instance.
[in]evtThe event to dispatch.