![]() |
nRF Connect SDK API 3.4.99
|
| 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.
| config | Client 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. |
| 0 | The framework was initialized. |
| -EINVAL | config or a required callback is NULL. |
| -EALREADY | The singleton framework is already initialized. |