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

◆ rtfw_event_push()

int rtfw_event_push ( const struct rtfw_event * event)

#include <include/rtfw/rtfw.h>

Push one event from the single producer fast path.

The framework rings its internal doorbell when delivery changes from idle to pending. Only the registered fast-path execution context may call this function. Calls from threads, the delivery callback, or another interrupt context violate the SPSC single-producer contract.

Return values
0The event was queued.
-EINVALevent is NULL or uses a framework-reserved type.
-EACCESThe framework has not been initialized.
-ENOSPCThe fixed-size queue was full.