![]() |
nRF Connect SDK API 3.4.99
|
| int rtfw_submit | ( | const struct rtfw_command * | command | ) |
#include <include/rtfw/rtfw.h>
Publish a latest-wins command and pend the backend source IRQ.
The call is thread-safe and non-blocking with respect to the RT context. It must not be called from interrupt context.
A command stops being pending when the fast path acknowledges its processing, regardless of the handler result. Consult attempted, applied, and apply_result in rtfw_status to distinguish success from failure.
| 0 | The command was published. |
| -EACCES | The framework is not initialized. |
| -EINVAL | command is NULL. |
| -EMSGSIZE | The command payload is too large. |
| -EPERM | The function was called from interrupt context. |