nrfxlib API 2.7.99
Loading...
Searching...
No Matches
nrf_modem_softsim.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
14#ifndef NRF_MODEM_SOFTSIM_H__
15#define NRF_MODEM_SOFTSIM_H__
16
17#include <stdint.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
33};
34
49typedef void (*nrf_modem_softsim_req_handler_t)(enum nrf_modem_softsim_cmd cmd, uint16_t req_id,
50 void *data, uint16_t data_len);
51
63
79int nrf_modem_softsim_res(enum nrf_modem_softsim_cmd cmd, uint16_t req_id, void *data,
80 uint16_t data_len);
81
93int nrf_modem_softsim_err(enum nrf_modem_softsim_cmd cmd, uint16_t req_id);
94
101
102#ifdef __cplusplus
103}
104#endif
105
106#endif /* NRF_MODEM_SOFTSIM_H__ */
int nrf_modem_softsim_err(enum nrf_modem_softsim_cmd cmd, uint16_t req_id)
Sends a SoftSIM error to a request.
nrf_modem_softsim_cmd
SoftSIM request command type.
Definition: nrf_modem_softsim.h:24
@ NRF_MODEM_SOFTSIM_APDU
Transport command, issued by the Modem to request data from the application.
Definition: nrf_modem_softsim.h:28
@ NRF_MODEM_SOFTSIM_INIT
Initialization command.
Definition: nrf_modem_softsim.h:26
@ NRF_MODEM_SOFTSIM_RESET
Reset command, issued by the Modem when a request becomes unresponsive.
Definition: nrf_modem_softsim.h:32
@ NRF_MODEM_SOFTSIM_DEINIT
Deinitialization command.
Definition: nrf_modem_softsim.h:30
void nrf_modem_softsim_data_free(void *data)
Free the data of a SoftSIM request.
int nrf_modem_softsim_res(enum nrf_modem_softsim_cmd cmd, uint16_t req_id, void *data, uint16_t data_len)
Sends a SoftSIM response to a request.
void(* nrf_modem_softsim_req_handler_t)(enum nrf_modem_softsim_cmd cmd, uint16_t req_id, void *data, uint16_t data_len)
Handle a SoftSIM request.
Definition: nrf_modem_softsim.h:49
int nrf_modem_softsim_req_handler_set(nrf_modem_softsim_req_handler_t handler)
Set a handler function for SoftSIM requests.