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

◆ mpsl_work_schedule()

static void mpsl_work_schedule ( struct k_work_delayable *  dwork,
k_timeout_t  delay 
)
inlinestatic

#include <include/mpsl/mpsl_work.h>

Submit an idle work item to the MPSL workqueue after a delay.

Note
Can be called by ISRs.
Work items submitted to the MPSL workqueue should avoid using handlers that block or yield since this may prevent the MPSL workqueue from processing other work items in a timely manner.
This is a no-op if the work item is already scheduled or submitted, even if delay is K_NO_WAIT.
Parameters
dworkAddress of delayable work item.
delaythe time to wait before submitting the work item. If K_NO_WAIT and the work is not pending this is equivalent to mpsl_work_submit().