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

◆ rtfw_init()

int rtfw_init ( const struct rtfw_config * config)

#include <include/rtfw/rtfw.h>

Initialize the reusable framework.

This must complete before the client enables its source interrupt. RTFW is a singleton; a second successful initialization is rejected with -EALREADY.

Parameters
configClient configuration. It must not be NULL, and all fields must be initialized. command_handler, fastpath_handler, and pend_source_irq are required. event_handler and both user-data fields can be NULL. RTFW copies the configuration before returning.
Return values
0The framework was initialized.
-EINVALconfig or a required callback is NULL.
-EALREADYThe singleton framework is already initialized.