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

◆ rtfw_submit()

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.

Return values
0The command was published.
-EACCESThe framework is not initialized.
-EINVALcommand is NULL.
-EMSGSIZEThe command payload is too large.
-EPERMThe function was called from interrupt context.