![]() |
nRF Connect SDK API 3.4.99
|
| 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.
| 0 | The event was queued. |
| -EINVAL | event is NULL or uses a framework-reserved type. |
| -EACCES | The framework has not been initialized. |
| -ENOSPC | The fixed-size queue was full. |