nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ mpsl_timeslot_callback_t

typedef mpsl_timeslot_signal_return_param_t *(* mpsl_timeslot_callback_t) (mpsl_timeslot_session_id_t session_id, uint32_t signal)

#include <mpsl/include/mpsl_timeslot.h>

The timeslot signal callback type.

Note
In case of invalid return parameters, the timeslot will automatically end immediately after returning from the signal callback and the MPSL_TIMESLOT_SIGNAL_INVALID_RETURN event will be sent.
The returned struct pointer must remain valid after the signal callback function returns. For instance, this means that it must not point to a stack variable.
The signal callback is executed from high priority context. It is not advised to use blocking operations in it. Use of kernel APIs may be also disallowed. Please check your operating system documentation.
Parameters
[in]session_idSession id as returned by mpsl_timeslot_session_open.
[in]signalType of signal, see MPSL_TIMESLOT_SIGNAL.
Returns
Pointer to structure containing action requested by the application.