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

◆ nrf_modem_rs_capture_session_start()

int32_t nrf_modem_rs_capture_session_start ( const struct nrf_modem_rs_capture_session_start_req * req,
struct nrf_modem_rs_capture_session_start_resp * resp,
nrf_modem_rs_capture_event_handler_type_t callback )

#include <nrf_modem/include/nrf_modem_rs_capture.h>

Starts RS capture session.

This function prepares RS capture sampling session but the actual sampling is not started until nrf_modem_rs_capture_prs_configure function is called. An event handler is also given to this function to receive the samples.

Note
The event handler is executed in interrupt context so a lot of processing inside the handler may have performance implications and side effects. It's recommended to use the handler only for signaling or re-scheduling processing to a separate thread.
Parameters
[in]reqSession start request parameters.
[out]respSession start response parameters if 0 is returned.
[in]callbackEvent handler function.
Return values
0on success.
-NRF_EBUSYAnother RS capture session is ongoing.
-NRF_EPERMThe Modem library is not initialized.
-NRF_EBADMSGThe modem responded with wrong response.
-NRF_EFAULTInput parameter is NULL.
-NRF_ENOMEMThere is not enough shared memory for this request.
-NRF_ESHUTDOWNThe modem was shut down.
NRF_MODEM_RS_CAPTURE_STATUS_NO_CELLCell not found.
NRF_MODEM_RS_CAPTURE_STATUS_BUSYResources not available or session already started.
NRF_MODEM_RS_CAPTURE_STATUS_NOT_SUPPORTEDCapture not supported in current LTE system.
NRF_MODEM_RS_CAPTURE_STATUS_TIMEOUTTimeout.
NRF_MODEM_RS_CAPTURE_STATUS_STOPPEDStop requested during start.