18#ifndef NRF_MODEM_RS_CAPTURE_H__
19#define NRF_MODEM_RS_CAPTURE_H__
29#define NRF_MODEM_RS_CAPTURE_MAX_DATA_SAMPLES 1536
37#define NRF_MODEM_RS_CAPTURE_STATUS_SUCCESS 0x00
39#define NRF_MODEM_RS_CAPTURE_STATUS_CELL_AVAILABLE 0x00
41#define NRF_MODEM_RS_CAPTURE_STATUS_NO_MEM 0x01
43#define NRF_MODEM_RS_CAPTURE_STATUS_NO_CELL 0x03
45#define NRF_MODEM_RS_CAPTURE_STATUS_NOT_ACTIVE 0x04
47#define NRF_MODEM_RS_CAPTURE_STATUS_BUSY 0x05
49#define NRF_MODEM_RS_CAPTURE_STATUS_NOT_SUPPORTED 0x06
51#define NRF_MODEM_RS_CAPTURE_STATUS_TIMEOUT 0x07
53#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:57
@ NRF_MODEM_RS_CAPTURE_EVT_PRS_SAMPLE
Definition nrf_modem_rs_capture.h:63
@ NRF_MODEM_RS_CAPTURE_EVT_ABORT
Definition nrf_modem_rs_capture.h:74
@ NRF_MODEM_RS_CAPTURE_EVT_CELL_STATUS
Definition nrf_modem_rs_capture.h:69
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:271
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:227
uint16_t mcc
Definition nrf_modem_rs_capture.h:231
uint32_t cell_id
Definition nrf_modem_rs_capture.h:229
uint16_t mnc
Definition nrf_modem_rs_capture.h:233
Definition nrf_modem_rs_capture.h:221
struct nrf_modem_rs_capture_prs_sample prs_sample
Definition nrf_modem_rs_capture.h:261
int32_t status
Definition nrf_modem_rs_capture.h:256
enum nrf_modem_rs_capture_event_id event_id
Definition nrf_modem_rs_capture.h:239
struct nrf_modem_rs_capture_cell_status cell_status
Definition nrf_modem_rs_capture.h:263
Definition nrf_modem_rs_capture.h:237
int16_t timing_offset
Definition nrf_modem_rs_capture.h:126
uint8_t index
Definition nrf_modem_rs_capture.h:132
int8_t gain_offset[16]
Definition nrf_modem_rs_capture.h:109
uint16_t i_prs
Definition nrf_modem_rs_capture.h:121
uint8_t nb_pattern[16]
Definition nrf_modem_rs_capture.h:119
Definition nrf_modem_rs_capture.h:100
uint32_t cell_id
Definition nrf_modem_rs_capture.h:144
int16_t timing_offset
Definition nrf_modem_rs_capture.h:171
int16_t * data
Definition nrf_modem_rs_capture.h:217
uint16_t mcc
Definition nrf_modem_rs_capture.h:146
uint16_t num_samples
Definition nrf_modem_rs_capture.h:166
uint8_t nb
Definition nrf_modem_rs_capture.h:159
uint8_t index
Definition nrf_modem_rs_capture.h:153
uint8_t plmn[3]
Definition nrf_modem_rs_capture.h:142
int8_t gain_offset
Definition nrf_modem_rs_capture.h:178
uint16_t mnc
Definition nrf_modem_rs_capture.h:148
int8_t rssi
Definition nrf_modem_rs_capture.h:173
uint16_t sfn
Definition nrf_modem_rs_capture.h:161
Definition nrf_modem_rs_capture.h:136
uint32_t timeout
Definition nrf_modem_rs_capture.h:80
Definition nrf_modem_rs_capture.h:78
uint16_t mcc
Definition nrf_modem_rs_capture.h:94
uint16_t mnc
Definition nrf_modem_rs_capture.h:96
uint32_t cell_id
Definition nrf_modem_rs_capture.h:92
uint8_t plmn[3]
Definition nrf_modem_rs_capture.h:90
Definition nrf_modem_rs_capture.h:84