nRF Connect SDK API 3.3.99
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 work queue after a delay.

Note
Can be called by ISRs.
Work items submitted to the MPSL work queue should avoid using handlers that block or yield since this may prevent the MPSL work queue 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. See mpsl_work_reschedule().
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().