21#ifndef NRF_MODEM_RS_CAPTURE_H__
22#define NRF_MODEM_RS_CAPTURE_H__
32#define NRF_MODEM_RS_CAPTURE_MAX_DATA_SAMPLES 1536
40#define NRF_MODEM_RS_CAPTURE_STATUS_SUCCESS 0x00
42#define NRF_MODEM_RS_CAPTURE_STATUS_CELL_AVAILABLE 0x00
44#define NRF_MODEM_RS_CAPTURE_STATUS_NO_MEM 0x01
46#define NRF_MODEM_RS_CAPTURE_STATUS_NO_CELL 0x03
48#define NRF_MODEM_RS_CAPTURE_STATUS_NOT_ACTIVE 0x04
50#define NRF_MODEM_RS_CAPTURE_STATUS_BUSY 0x05
52#define NRF_MODEM_RS_CAPTURE_STATUS_NOT_SUPPORTED 0x06
54#define NRF_MODEM_RS_CAPTURE_STATUS_TIMEOUT 0x07
56#define NRF_MODEM_RS_CAPTURE_STATUS_STOPPED 0x08
int32_t nrf_modem_rs_capture_session_stop(void)
Stops RS capture.
nrf_modem_rs_capture_event_id
Definition nrf_modem_rs_capture.h:60
@ NRF_MODEM_RS_CAPTURE_EVT_PRS_SAMPLE
Definition nrf_modem_rs_capture.h:66
@ NRF_MODEM_RS_CAPTURE_EVT_ABORT
Definition nrf_modem_rs_capture.h:77
@ NRF_MODEM_RS_CAPTURE_EVT_CELL_STATUS
Definition nrf_modem_rs_capture.h:72
int32_t nrf_modem_rs_capture_prs_configure(const struct nrf_modem_rs_capture_prs_config *req)
Configure PRS capture.
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)
Starts RS capture session.
void(* nrf_modem_rs_capture_event_handler_type_t)(const struct nrf_modem_rs_capture_event_data *event_data)
Event handler prototype.
Definition nrf_modem_rs_capture.h:274
int32_t nrf_modem_rs_capture_version(uint8_t version)
Version negotiation for the RS capture API.
uint8_t plmn[3]
Definition nrf_modem_rs_capture.h:230
uint16_t mcc
Definition nrf_modem_rs_capture.h:234
uint32_t cell_id
Definition nrf_modem_rs_capture.h:232
uint16_t mnc
Definition nrf_modem_rs_capture.h:236
Definition nrf_modem_rs_capture.h:224
struct nrf_modem_rs_capture_prs_sample prs_sample
Definition nrf_modem_rs_capture.h:264
int32_t status
Definition nrf_modem_rs_capture.h:259
enum nrf_modem_rs_capture_event_id event_id
Definition nrf_modem_rs_capture.h:242
struct nrf_modem_rs_capture_cell_status cell_status
Definition nrf_modem_rs_capture.h:266
Definition nrf_modem_rs_capture.h:240
int16_t timing_offset
Definition nrf_modem_rs_capture.h:129
uint8_t index
Definition nrf_modem_rs_capture.h:135
int8_t gain_offset[16]
Definition nrf_modem_rs_capture.h:112
uint16_t i_prs
Definition nrf_modem_rs_capture.h:124
uint8_t nb_pattern[16]
Definition nrf_modem_rs_capture.h:122
Definition nrf_modem_rs_capture.h:103
uint32_t cell_id
Definition nrf_modem_rs_capture.h:147
int16_t timing_offset
Definition nrf_modem_rs_capture.h:174
int16_t * data
Definition nrf_modem_rs_capture.h:220
uint16_t mcc
Definition nrf_modem_rs_capture.h:149
uint16_t num_samples
Definition nrf_modem_rs_capture.h:169
uint8_t nb
Definition nrf_modem_rs_capture.h:162
uint8_t index
Definition nrf_modem_rs_capture.h:156
uint8_t plmn[3]
Definition nrf_modem_rs_capture.h:145
int8_t gain_offset
Definition nrf_modem_rs_capture.h:181
uint16_t mnc
Definition nrf_modem_rs_capture.h:151
int8_t rssi
Definition nrf_modem_rs_capture.h:176
uint16_t sfn
Definition nrf_modem_rs_capture.h:164
Definition nrf_modem_rs_capture.h:139
uint32_t timeout
Definition nrf_modem_rs_capture.h:83
Definition nrf_modem_rs_capture.h:81
uint16_t mcc
Definition nrf_modem_rs_capture.h:97
uint16_t mnc
Definition nrf_modem_rs_capture.h:99
uint32_t cell_id
Definition nrf_modem_rs_capture.h:95
uint8_t plmn[3]
Definition nrf_modem_rs_capture.h:93
Definition nrf_modem_rs_capture.h:87